Tue Apr 25, 2023 9:49 am
Wed Apr 26, 2023 2:30 pm
Wed Apr 26, 2023 5:24 pm
(car '("root" "png"))
(car '("png"))
(car '())
(strFanArt (car (strbreakup (number->string intFanArt 10) ".")))
(KodiSkinPath "C:\\Movies\\Aliens (1986)" "Aliens (1986)" 7 5.1)
Wed Apr 26, 2023 5:31 pm
(script-fu-kodi-save 1 2 2 0)
(script-fu-kodi-save (gimp-image-get-id) (car (gimp-image-get-active-drawable (gimp-image-get-id))) 2 0)
(tracing 1)
(tracing 0)
(display "text")
(displayln "return to the line")
(gimp-message "warning")
Wed Apr 26, 2023 5:40 pm
Thu Apr 27, 2023 8:34 pm
AlSchemist wrote:I cannot reproduce the following issue with art type "Banner" index 2 in KodiSave 1.4
Try to indicate more context such as full path of picture, states of each element of the KodiSave dialog box.
Error: car: argument 1 must be: pair
Run the Script-Fu console by "Filters" > "Script-Fu" > "Console" (Alt+R S C).
The function car retrieves the first element of a given list such as '("root" "png")
- Code:
(car '("root" "png"))
"root"
Let us remove manually the first element. The list becomes '("png")
- Code:
(car '("png"))
"png"
Let us remove again the first element. The list becomes empty '()
- Code:
(car '())
Error: car: argument 1 must be: pair
In other words, car does not like the empty list.
In KodiSave 1.4, I mainly introduced car in KodiSkinPath in the affection of the local variable strFanArt of type string.
- Code:
(strFanArt (car (strbreakup (number->string intFanArt 10) ".")))
You cannot directly run this affection.
But try to run the examples in comment starting with ";" above the define such as the last one:
Do not copy the ";" but after from the opening parenthesis until the corresponding closing parenthesis.
- Code:
(KodiSkinPath "C:\\Movies\\Aliens (1986)" "Aliens (1986)" 7 5.1)
"C:\\Movies\\Aliens (1986)\\Aliens (1986)-fanart5.jpg"
It does not matter if the path exists or not.
The expected result is also supplied as a comment before the define.
Try to reproduce your own context about:
- your path of picture. Do not forget to double backslash in Windows;
- your art type banner has for index 2 instead of fanart at 7;
- fanArtNbr should be 0 but indicate the real number of the spinner.
Thu Apr 27, 2023 8:59 pm
Fri Apr 28, 2023 3:44 pm
kittmaster wrote:images located in "C:\Users\chris\Desktop\Kodi\1883 (2023)", load image file 1, load image file 2, merge 1 and 2 into template (banner
kittmaster wrote:Create new image
Fri Apr 28, 2023 3:54 pm
(tracing 1)
(tracing 0)
Fri Apr 28, 2023 4:02 pm
kittmaster wrote:PathInfoPic
(closure? PathInfoPic)
(procedure? PathInfoPic)
(get-closure-code PathInfoPic)
(procedure? car)
(closure? car)
(get-closure-code car)
Fri Apr 28, 2023 8:31 pm
Sat Apr 29, 2023 5:53 am
Sun Apr 30, 2023 10:33 am
kittmaster wrote:While Kodi has a bad rap about illegal stuff, their charter changed. It really does a great job as a media server.
Kodi wrote:Your library is currently empty. In order to populate it with your personal media, enter "Files" section,
add a media source and configure it. After the source has been added and indexed you will be able to browse your library.
Sun Apr 30, 2023 11:04 am
Microsoft Designer wrote:Describe the design you'd like to create
Sun Apr 30, 2023 11:47 am
kittmaster wrote:The root of the TV Show folder itself contains the seasons artwork... with the caveat that the season numerical number requires the leading zero to allow Kodi and the media program to match and display the artwork correctly.
kittmaster wrote:The fanartXX images you can see follows movies, but it is added to a folder that needs to be created called extrafanart
kittmaster wrote:There are no needs for the .actors folders as those are scraped by the media program and placed automatically.
Mon May 01, 2023 11:08 am
Mon May 01, 2023 1:31 pm
; Season selector:0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
(define vSeason #(" " "01" "02" "03" "04" "05" "06" "07" "08" "09" "10" "11" "12" "13" "14" "15" "16" "17" "18" "19" "20" "21" "22" "23" "24" "25" "26" "27" "28" "29" "30" "31" "32" "33" "34" "35" "36" "37" "38" "39" "40" "41" "42" "43" "44" "45" "46" "47" "48" "49" "50" "-all"))
Mon May 01, 2023 3:24 pm
In #16, you wrote:If 0, then fanart.jpg, 1 fanart1.jpg, 2 fanart2.jpg......and so on.
In #36, you wrote:--if it is "fanart.jpg" only [...]
--if it is "fanartXX.jpg, [...] "Fanart 0.jpg", "Fanart 1.jpg", no movie title or year prefix.
Mon May 01, 2023 4:34 pm
Sun May 07, 2023 7:24 am
KodiSave 1.7 Line: 536 define: 16 comment: 210 = 39.1% blank: 94
KodiSave 1.6 Line: 288 define: 12 comment: 84 = 29.1% blank: 16