XBMC Community Forum
XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for XBMC (/forumdisplay.php?fid=116)
+--- Thread: XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) (/showthread.php?tid=98210)



- Ryoga79 - 2012-02-04 20:13

Ryoga79 Wrote:Thanks!

One last question, and it's low priority since i'm not sure how easy it would be to implement...Is there any way to separately categorize anime into a separate folder? I typically "wife-proof" my HTPC by keeping the anime in a separate playlist, so as to keep it from clogging up my "main" TV show list, but if i scrape the anime from plugins, i'm not sure how i'd filter them out via playlist, since pretty much everything is just dumped into "TV Shows" in the dropbox. Can there be a separate "Anime" section in the dropbox that i could use for Anime shows?

Nevermind, i'm actually overthinking the problem. I just made a separate instance of mylibrary that only scrapes for anime, with a separate dropbox, and then just playlisted on that second dropbox for the anime list.


- Aenima99x - 2012-02-04 20:37

bradvido88 Wrote:Problem here is that I stupidly hardcoded a windows-only path as the fallback for the base directory. I'll change it and release an update soon

Bradvido - Any update on this? I'd love to get this fixed so I can kill the WinXP VM and just run it straight from my Ubuntu box. Thanks!


changed to UNC/SMB paths - actapon - 2012-02-04 21:43

I recently made a change to my system so that my database was moved to mysql and all my video sources were accessible over upnp or smb shares.

To transition mylibrary, i cleared out the old video sources in xbmc related to my library, deleted the strm files, and purged the cache db files used by mylibrary. I also updated mylibrary's config file to use unc instead.

But... the update meta data part of the script is failing: "SKIPPING meta-data update: the video is not yet in XBMC's library"

I can see in your source that you're substituting the unc paths with smb paths for xbmc's database, so i was puzzled. I was staring at the values in xbmc's episode information and my library's log to find the problem, but didn't see it. When i opened the mysql db, i saw it right away (i think). My smb path in xbmc appears to be holding my un and pw in clear text after the smb:\\.

first - i'm not happy my pw is in clear text there - not the problem of this forum though.

Second - how can i get the meta data to update my db entries when my smb path contains a username and password?


- nocut12 - 2012-02-05 05:30

Is there a way to rename movies/TV shows automatically with this? I don't see a way to do it in the search filters.

I'm looking to append dates to certain movies and TV shows so that the scraper will recognize it correctly. Doing it manually is works, but it's a huge pain and each time I run this program it messes up renamed shows.


- ginsengbomb - 2012-02-06 19:15

Has anybody messed around with getting this to work on OS X? I just took an initial stab, played around for 45 minutes or so, and didn't get terribly far. I'm going to have another go at it later tonight but was wondering if anybody else has tried and has some pointers.


OS X config - kfred - 2012-02-08 17:07

Ginsengbomb, I'm curious about the same thing! I only spent about 5 minutes on it, after realizing that I couldn't edit the .cmd file without cmd.exe. Please, anyone, if you have any input for ginseng and me to get started working on a mac setup, let us know!


- bradvido88 - 2012-02-08 17:20

Aenima99x Wrote:Bradvido - Any update on this? I'd love to get this fixed so I can kill the WinXP VM and just run it straight from my Ubuntu box. Thanks!
Yes, this should be working on all OS's now.
Run this command on your OS to run it:
java -jar "path/to/XBMC.MyLibrary.jar" "path/to/XBMC.MyLibrary folder"

actapon Wrote:I recently made a change to my system so that my database was moved to mysql and all my video sources were accessible over upnp or smb shares.

To transition mylibrary, i cleared out the old video sources in xbmc related to my library, deleted the strm files, and purged the cache db files used by mylibrary. I also updated mylibrary's config file to use unc instead.

But... the update meta data part of the script is failing: "SKIPPING meta-data update: the video is not yet in XBMC's library"

I can see in your source that you're substituting the unc paths with smb paths for xbmc's database, so i was puzzled. I was staring at the values in xbmc's episode information and my library's log to find the problem, but didn't see it. When i opened the mysql db, i saw it right away (i think). My smb path in xbmc appears to be holding my un and pw in clear text after the smb:\\.

first - i'm not happy my pw is in clear text there - not the problem of this forum though.

Second - how can i get the meta data to update my db entries when my smb path contains a username and password?
Yeah I knew that XBMC did that, but I didn't handle it in my code.
I can create a fix to allow any wildcard where the un/pw would be.
Otherwise, i'd suggest you configure it so you don't need to store the un/pw in XBMC:

either run XBMC under a user account that already has access to the SMB share
...or configure the share the allow read access to everyone

then delete the un/pw from XBMC's source for that share.

Otherwise you can wait until i get a fix patched for it or submit one yourself.

nocut12 Wrote:Is there a way to rename movies/TV shows automatically with this? I don't see a way to do it in the search filters.

I'm looking to append dates to certain movies and TV shows so that the scraper will recognize it correctly. Doing it manually is works, but it's a huge pain and each time I run this program it messes up renamed shows.
No, that's not really what this program is for.

ginsengbomb Wrote:Has anybody messed around with getting this to work on OS X? I just took an initial stab, played around for 45 minutes or so, and didn't get terribly far. I'm going to have another go at it later tonight but was wondering if anybody else has tried and has some pointers.
Yes, it should work just the same as Windows and *nix. See above.

kfred Wrote:Ginsengbomb, I'm curious about the same thing! I only spent about 5 minutes on it, after realizing that I couldn't edit the .cmd file without cmd.exe. Please, anyone, if you have any input for ginseng and me to get started working on a mac setup, let us know!
The cmd file is supplied just for an example. You don't need to use it, just run the java command i mentioned above.


- ginsengbomb - 2012-02-08 17:33

@bradvido88: Thank you sir! I'll give this another go later this evening and report back.

Reporting back:
Works beautifully. This is a fantastic tool!


- Aenima99x - 2012-02-08 17:36

bradvido88 Wrote:Yes, this should be working on all OS's now.
Run this command on your OS to run it:
java -jar "path/to/XBMC.MyLibrary.jar" "path/to/XBMC.MyLibrary folder"

Cool Thanks working perfect!

Edit - Actually a couple more things related to the paths. It's creating a \logs folder instead of using the logs folder and naming the log files \logs\XBMC.MyLibrary.log. Also, it's creating a \res\temp.xml instead of putting the temp.xml in the res folder. Thanks Bradvido.


- actapon - 2012-02-26 20:41

Playing around with custom filters and running into some odd issues. Two that i don't know how to fix.

1- I have the following filter with "type" specifically set to "episodes", but when mylibrary scans, it's dumping all of the strm files into my movies dropbox.

Code:
<Netflix custom_parser="PlayOn">
    <subfolder name="Instant Queue/Genres/Sports &amp; Fitness" recursive="true" type="episodes" prefix="[Netflix] "></subfolder>    
</Netflix>

Logs are even pretty clear it just considers the strm files movies:
Code:
02/26/2012 12:19:06 PM NOTICE  Summary:Netflix/ TV Success: 0, TV Fail: 0
02/26/2012 12:19:06 PM NOTICE  Summary:Netflix/ Movie Success: 5, Movie Fail: 0

Can you explain the "type" field for the filters and how the parser is determining whether a file should be a movie or a tv episode?

My second problem also appears to be a parsing issue, but is much more complicated i fear. I'm trying to add a playon:tbs filter to add "conan" to my library. It appears the TVDB lookup fails in the mylibrary scan which leaves me getting folders in "TV Shows" for each date (2/14/2012), each containing one episode, but no root "conan" folder

My config is this:
Code:
<TBS custom_parser="PlayOn">
    <subfolder name="Full Episodes/Conan" type="episodes" prefix="[TBS] "></subfolder>    
</TBS>


The logs indicate the lookup fails and will consider the episode special
Code:
02/26/2012 11:39:37 AM WARNING TVDB             Ending lookup. No series could be found by querying TheTVDB: http://www.thetvdb.com/api/GetSeries.php?seriesname=2%2F24%2F2012. Will try to archive this video again later.
02/26/2012 11:39:37 AM INFO    Archiving        Archiving as a special (Season zero) episode since TVDB lookup failed....

I guess my question is, if the tvdb lookup fails, is there a way to specify a show name in the filter and dump the strm files in that folder? That way a bunch of custom parsing doesn't create an unusable directory structure?