Kodi Community Forum
Win HTML Creator for Kodi - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+--- Thread: Win HTML Creator for Kodi (/showthread.php?tid=160863)

Pages: 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


RE: MyXBMC HTML Generator: Show others your library with style. - HMouse - 2013-08-31

Hey Deadsix, nice looking script.. However I think I must be missing something.

1.) I installed the latest version.
2.) Chose the Manual Scrape option and pointed it to a copy of my database files.
3.) It scraped just fine and found all the movies
4.) I hit Download/Images it grabbed all the image files just fine and saved to the folder
5.) Then I hit Generate HTML.. It comes up and says it created the HTML files successfully.. however it say 0 files were processed and when I hit View HTML it tells me I have to Generate first

I checked the folder and no html files were ever created.. Also noticed it says my Library size is 0. Not sure why.

Am I missing a step?

Image

Image


RE: MyXBMC HTML Generator: Show others your library with style. - DeadSix27 - 2013-08-31

(2013-08-31, 07:21)HMouse Wrote: 5.) Then I hit Generate HTML.. It comes up and says it created the HTML files successfully.. however it say 0 files were processed and when I hit View HTML it tells me I have to Generate first

I checked the folder and no html files were ever created.. Also noticed it says my Library size is 0. Not sure why.
Run the program as Administrator (Right click Desktop shortcut or .exe-> "Run as Administrator")
Enable debug (Tools->Debug->Debug Logging)
Try all again.

If it still doesnt work.. open the program folder.. and paste the stuff out of "debug_output.txt" onto pastebin.com or similiar a site

PS: I will now finally add (in next update) something that tells you guys if you even have write permissions on the output folder.. (Why didn't i think about that earlier hehe)


RE: MyXBMC HTML Generator: Show others your library with style. - booker88 - 2013-08-31

(2013-08-29, 08:16)DeadSix27 Wrote: Also, I had to delay my update a bit.. i'm kinda out of will to code on it.. not to mention im on a educ. search currently.. so im pretty stressed.

Update:
Mind helping me to sum up what's been requested and needed? (List known bugs, ideas you want and other stuff)

Since you asked... Wink

The ability to toggle on support for "sorttitle" (it's explained a bit in here.)

Also a toggle & entry field for "Ignore articles when sorting" i.e. the, le, die. "The" Sopranos, "le" grand bleu, "die" blechtrommel

Things are fine though. If you are stressed don't worry about adding new stuff now dude.


RE: MyXBMC HTML Generator: Show others your library with style. - DeadSix27 - 2013-09-01

(2013-08-31, 17:20)booker88 Wrote: The ability to toggle on support for "sorttitle" (it's explained a bit in here.)
Can you show me where exactly.. i don't get what you mean

And about the "Article ignoring",i will see if i find anything like it in the DB of xbmc.. and if so.. ill add it.


RE: MyXBMC HTML Generator: Show others your library with style. - HMouse - 2013-09-01

(2013-08-31, 09:13)DeadSix27 Wrote:
(2013-08-31, 07:21)HMouse Wrote: 5.) Then I hit Generate HTML.. It comes up and says it created the HTML files successfully.. however it say 0 files were processed and when I hit View HTML it tells me I have to Generate first

I checked the folder and no html files were ever created.. Also noticed it says my Library size is 0. Not sure why.
Run the program as Administrator (Right click Desktop shortcut or .exe-> "Run as Administrator")
Enable debug (Tools->Debug->Debug Logging)
Try all again.

If it still doesnt work.. open the program folder.. and paste the stuff out of "debug_output.txt" onto pastebin.com or similiar a site

PS: I will now finally add (in next update) something that tells you guys if you even have write permissions on the output folder.. (Why didn't i think about that earlier hehe)

Ok same thing running as Admin.. I turned on the debug and got this in the log.. It scanned fine at the top but errored out at the bottom trying to get the file sizes for the library.

Error getting FileSize ofStar Trek: The Next Generation, D:\TV Series\Star Trek\The Next Generation\Star Trek The Next Generation S07\Star Trek TNG s07e22 - Bloodlines.mkv
Error getting FileSize ofStar Trek: The Next Generation, D:\TV Series\Star Trek\The Next Generation\Star Trek The Next Generation S07\Star Trek TNG s07e23 - Emergence.mkv
Error getting FileSize ofStar Trek: The Next Generation, D:\TV Series\Star Trek\The Next Generation\Star Trek The Next Generation S07\Star Trek TNG s07e24 - Preemptive Strike.mkv
Error getting FileSize ofStar Trek: The Next Generation, D:\TV Series\Star Trek\The Next Generation\Star Trek The Next Generation S07\Star Trek TNG s07e25 - All Good Things....mkv
Error getting FileSize of*batteries not included, System.Collections.Generic.List`1[System.String]
Error getting FileSize of10 Things I Hate About You, System.Collections.Generic.List`1[System.String]
Error getting FileSize of10,000 BC, System.Collections.Generic.List`1[System.String]
Error getting FileSize of21 Jump Street, System.Collections.Generic.List`1[System.String]
Error getting FileSize of27 Dresses, System.Collections.Generic.List`1[System.String]
Error getting FileSize of3:10 to Yuma, System.Collections.Generic.List`1[System.String]
Error getting FileSize of300, System.Collections.Generic.List`1[System.String]
Error getting FileSize of4: Rise of the Silver Surfer, System.Collections.Generic.List`1[System.String]

I'm guessing that it does Require that you run it on the same box as the media is attached to? It appears as though it is going out and trying to read the media files. I was fairly sure in the FAQ's though I read you could copy the DB files to another PC and run them. Is this not the case?


RE: MyXBMC HTML Generator: Show others your library with style. - DeadSix27 - 2013-09-01

(2013-09-01, 02:42)HMouse Wrote:
(2013-08-31, 09:13)DeadSix27 Wrote:
(2013-08-31, 07:21)HMouse Wrote: 5.) Then I hit Generate HTML.. It comes up and says it created the HTML files successfully.. however it say 0 files were processed and when I hit View HTML it tells me I have to Generate first

I checked the folder and no html files were ever created.. Also noticed it says my Library size is 0. Not sure why.
Run the program as Administrator (Right click Desktop shortcut or .exe-> "Run as Administrator")
Enable debug (Tools->Debug->Debug Logging)
Try all again.

If it still doesnt work.. open the program folder.. and paste the stuff out of "debug_output.txt" onto pastebin.com or similiar a site

PS: I will now finally add (in next update) something that tells you guys if you even have write permissions on the output folder.. (Why didn't i think about that earlier hehe)

Ok same thing running as Admin.. I turned on the debug and got this in the log.. It scanned fine at the top but errored out at the bottom trying to get the file sizes for the library.

Error getting FileSize ofStar Trek: The Next Generation, D:\TV Series\Star Trek\The Next Generation\Star Trek The Next Generation S07\Star Trek TNG s07e22 - Bloodlines.mkv
Error getting FileSize ofStar Trek: The Next Generation, D:\TV Series\Star Trek\The Next Generation\Star Trek The Next Generation S07\Star Trek TNG s07e23 - Emergence.mkv
Error getting FileSize ofStar Trek: The Next Generation, D:\TV Series\Star Trek\The Next Generation\Star Trek The Next Generation S07\Star Trek TNG s07e24 - Preemptive Strike.mkv
Error getting FileSize ofStar Trek: The Next Generation, D:\TV Series\Star Trek\The Next Generation\Star Trek The Next Generation S07\Star Trek TNG s07e25 - All Good Things....mkv
Error getting FileSize of*batteries not included, System.Collections.Generic.List`1[System.String]
Error getting FileSize of10 Things I Hate About You, System.Collections.Generic.List`1[System.String]
Error getting FileSize of10,000 BC, System.Collections.Generic.List`1[System.String]
Error getting FileSize of21 Jump Street, System.Collections.Generic.List`1[System.String]
Error getting FileSize of27 Dresses, System.Collections.Generic.List`1[System.String]
Error getting FileSize of3:10 to Yuma, System.Collections.Generic.List`1[System.String]
Error getting FileSize of300, System.Collections.Generic.List`1[System.String]
Error getting FileSize of4: Rise of the Silver Surfer, System.Collections.Generic.List`1[System.String]

I'm guessing that it does Require that you run it on the same box as the media is attached to? It appears as though it is going out and trying to read the media files. I was fairly sure in the FAQ's though I read you could copy the DB files to another PC and run them. Is this not the case?

It works fine, its just that It's hard to handle alot of different file names (Also.. do all these movies have a comma "," in their name? If so.. then thats the comma bug i fixed in like 10 versions .. which keeps coming back.. (very hard to parse it))

For the record: His problem was, that he did not have the FULL net4.0 installed.. be sure to install it !


RE: MyXBMC HTML Generator: Show others your library with style. - booker88 - 2013-09-01

You can use it to control how certain titles (it isn't a mandatory field) are sorted. For instance, to have all your James Bond titles appear in a single sequence by filling their sorttitle fields with jamesbond01, jamesbond02, etc.

You'll see it best in section 4.1

Quote: From the wiki:
4.1 Editing the .NFO file
The two tags we’re interested in are shown on the NFO files/movies page, but not really explained. They are:
<sorttitle>: This tag is used to give a secondary ’sort title’ that will be used to order the movies when sorting the movies by name. The easiest way to handle this is to just use “Die Hard 1″, "Die Hard 2″, etc.
Since XBMC also remembers views for different folders, you could also just sort this folder by movie year, rather than name, and achieve the same result.
<<set>: This tag is used to give a name to the set, or series, so that it can be listed in your Movies view.
For the Die Hard example we would add the following tags to each .NFO file in the movie series.
<sorttitle>Die Hard 1</sorttitle>
<set>Die Hard Collection</set>
Note that the sorttitle tag is an option tag that is not specific to sets. You only need it if you want your movies to sort by a different name other than their actual title. It is safe to leave it out if you would rather just use the date sort.



RE: MyXBMC HTML Generator: Show others your library with style. - DeadSix27 - 2013-09-01

(2013-09-01, 08:45)booker88 Wrote: You can use it to control how certain titles (it isn't a mandatory field) are sorted. For instance, to have all your James Bond titles appear in a single sequence by filling their sorttitle fields with jamesbond01, jamesbond02, etc.

So it's "Collection/Set" specific ?

Because in-set sorting seems kinda overdoing stuff.. i would simply add Sorttitle support overall.. so that it lists the whole movie/tvshow list by that.. (if existing)

Update: I will release a update later today.. with Sort title and other updates Smile stay tuned
Update2:

Uploaded v6.6.0 Stable: http://dead6.eu/?p=xbmc_html_generator

Changelog:
[Add] Sorting by "Sort friendly title" (still testing)
[Add] Permission check on output and program folder
[Add] Check if Net4Full is installed.
[Add] Build Date
[Fix] Manual defining of Output folder not working correctly
[Fix] Crashes in HTML Generator thread
[Fix] Crash when no permission to write html files


RE: MyXBMC HTML Generator: Show others your library with style. - HMouse - 2013-09-01

I have what I believe should be a minor feature request.

Can you add Date Added to the info box on the left where it will actually display the Date it was Added.. Like you have Last Played Time.

The reasoning behind this is I would like to pull a sort by Data Added (Desc order) List and have it display the Actual Date Added on the left so that the viewer can can look back to see what has been added since the last time they viewed the list. For example they know they looked at it in January.. they can easily see what has been added since that month by the new Date Added info field.

Thanks


RE: MyXBMC HTML Generator: Show others your library with style. - DeadSix27 - 2013-09-01

I will add it in the next update


RE: MyXBMC HTML Generator: Show others your library with style. - onlyyou - 2013-09-03

Great tool.
How can I change the formatting of the HTML generated page ?
I would love to get rid of the poster and go back to something more simple with just movie name and resolution.
Thanks for the help
Nat


RE: MyXBMC HTML Generator: Show others your library with style. - DeadSix27 - 2013-09-03

(2013-09-03, 20:52)onlyyou Wrote: Great tool.
How can I change the formatting of the HTML generated page ?
I would love to get rid of the poster and go back to something more simple with just movie name and resolution.
Thanks for the help
Nat

You have to modify the Skin .css file yourself (CSS knowledge is required) because I did not create a simple no-poster skin (yet).


RE: MyXBMC HTML Generator: Show others your library with style. - HMouse - 2013-09-05

Hey Deadsix,

Found a few more things..

1.) In TV Shows, if you add say season 3 first, and then later add season 1 and 2.. when generating the HTML it sorts by ID and not by Season\Title. Thus Season 3 comes first in the episode Details list. Can you make it always sort by Season order?

2.) I added a movie and it threw a Critical error downloading the Fan Art. I tried removing the Poster art and re-downloading the artwork again, however now it just re-downloads the poster and doesn't even bother trying to get the Fan art. Is there a way to force it to re download the fan art, or at least make it realize it isn't there? I double checked the Fan Art folder and it definitely is not there. It does exist in my XBMC library.

3.) On some of my SD movies, it does not pull in the video codec code for the movie properly. For example MPEG or X264, others it works fine. How does the scraper read the file for this information? Are my files missing the code type in the properties of the file maybe?
<div class="qBar"> <Right Here Should be Video Codec code> <img class="qIcon" alt="720x576" src="./images/icons/480p.png"/><img class="qIcon" alt="AC3 Audio Codec" src="./images/icons/ac3.png"/><img class="qIcon" alt="6 Audio Channels" src="./images/icons/ac_6.png"/>

Thanks for the help


RE: MyXBMC HTML Generator: Show others your library with style. - onlyyou - 2013-09-05

Re,
Even when i'm hitting Scan Media Quality, i can't see it appears anywhere.
And when, in the Debug menu, go to Video Info, i only have ? for video codec, Height, ...
Any reason ?


RE: MyXBMC HTML Generator: Show others your library with style. - DeadSix27 - 2013-09-05

(2013-09-05, 08:10)onlyyou Wrote: Re,
Even when i'm hitting Scan Media Quality, i can't see it appears anywhere.
And when, in the Debug menu, go to Video Info, i only have ? for video codec, Height, ...
Any reason ?
This can't happen.. but .. could you check the program folder for MediaInfo.dll? If not existing.. tell me..if it exists.. right click it and find that unlock button .. I dont know its real name.. must be something like Unlock Downloaded file or so..

Also try: Running program as admin and check if those videos can even be acessed from the PC you run my program of.

(2013-09-05, 02:53)HMouse Wrote: Hey Deadsix,

Found a few more things..

1.) In TV Shows, if you add say season 3 first, and then later add season 1 and 2.. when generating the HTML it sorts by ID and not by Season\Title. Thus Season 3 comes first in the episode Details list. Can you make it always sort by Season order?

2.) I added a movie and it threw a Critical error downloading the Fan Art. I tried removing the Poster art and re-downloading the artwork again, however now it just re-downloads the poster and doesn't even bother trying to get the Fan art. Is there a way to force it to re download the fan art, or at least make it realize it isn't there? I double checked the Fan Art folder and it definitely is not there. It does exist in my XBMC library.

3.) On some of my SD movies, it does not pull in the video codec code for the movie properly. For example MPEG or X264, others it works fine. How does the scraper read the file for this information? Are my files missing the code type in the properties of the file maybe?
<div class="qBar"> <Right Here Should be Video Codec code> <img class="qIcon" alt="720x576" src="./images/icons/480p.png"/><img class="qIcon" alt="AC3 Audio Codec" src="./images/icons/ac3.png"/><img class="qIcon" alt="6 Audio Channels" src="./images/icons/ac_6.png"/>

Thanks for the help
1) well yes.. i sort by ID. .thats why .. its almost the only way to do that.. but I will look if theres a better way again..
2) Hm.. are you sure the fan art folder does really not contain any image of that video?.. Also try defining it manually.. by putting a jpg inside the images folder with the right name.. sometimes the images can't be fetched of their website because it bugs or timeouts (not a problem with my program)

3) Download: http://mediaarea.net/en/MediaInfo and right click the movie then hit "Mediainfo", then paste the sutff into pastebin.com and send it to me.
(because its probably a video codec i didnt add to the program yet.. some very rare one.. or so)

Update: I successfully set up a test software I wrote.. maybe we will have in-browser streaming of the videos soon Smile.. but don't expect it too early.. its still very.. well .. basic