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)



- TheCasa - 2011-12-18 00:06

Now that I have it pulling my queue in from Hulu, I'm ready to start really making this my own, but I need a little primer on how to discover the subfolders to use.

I use Hulu, Amazon, and Free Cable atm, so if someone can give me some guidance as to how to find how to set the subfolders, I'll run with it. At this point, I'm not sure how to start though. Is it generally the same method for other sources?

Thanks everyone that can help and especially bradvido88 for the great program. It's going to make my transition to a cable free life much easier and make the wife happy in the process.


- badwornthing - 2011-12-18 23:57

I love the sound of this, as it's exactly what I'd like to do with my plugins. Unfortunately I can't for the life of me get it to work. Has anyone got it working with either BBC Iplayer, or Navi-x (plugin version, as presumably it won't work with the script version)?


- bradvido88 - 2011-12-23 04:03

May be good news for native streams in the library. http://trac.xbmc.org/ticket/8730#comment:42


- tmm0f5 - 2011-12-23 17:35

Clean Up

Is there something I need to do in order to get the clean up to work? Right now it doesn't remove .strm files or XBMC listings after I remove items from NetFlix. I have to delete the dropbox subfolders, run Clean Library in XBMC and delete the .db files the in .res folder in XBMC.MyLibrary to get XBMC up to date.

If I simply add to my queue, they appear to add just fine.

FYI: this is the Dharma version (what all is different on the Eden version?)

Thanks for a great app!,
Tim


- TheCasa - 2011-12-27 05:47

Is it possible to add a movie that has a subfolder structure that includes episodes (1)/movie?

For example, I'm trying to add from hulu, Good Will Hunting. I'd actually like to download it. I've not used the JDownloader before, but either way....

Thanks!


- bradvido88 - 2011-12-27 15:53

tmm0f5 Wrote:I've deleted the .db's in /res and cleared out the dropbox. It will then rescan my netflix queue and add everything. But if I make subsequent changes, it doesn't do anything.

Here is my log:

http://www.mediafire.com/?9f9wbxulpbx91w5

Any thoughts?

Thanks,
Tim
I'm assuming you are using PlayOn w/ Netflix. For XBMC to pick up changes to your Netflix queue, you need to restart XBMC. This is because XBMC caches UPNP listings (PlayOn listings), so it won't catch when things change in your queue until it has been restarted and the cache is erased.

TheCasa Wrote:Now that I have it pulling my queue in from Hulu, I'm ready to start really making this my own, but I need a little primer on how to discover the subfolders to use.

I use Hulu, Amazon, and Free Cable atm, so if someone can give me some guidance as to how to find how to set the subfolders, I'll run with it. At this point, I'm not sure how to start though. Is it generally the same method for other sources?

Thanks everyone that can help and especially bradvido88 for the great program. It's going to make my transition to a cable free life much easier and make the wife happy in the process.
The examples in the user's guide are all I have right now. Do you have a specific issue you can point out. I could help with that.


- TheCasa - 2011-12-28 21:00

I'll try to get some specifics as to what I'm looking for to see if you can help with the first request. What I do have going is adding all my hulu subscriptions. That's huge!

Now, for the movie thing. Here are a couple ways I've tried the search filters to make it work. None have worked. It could never find the subdirectory:

Copies straight from the sample:
<subfolder name="Movies/Feature Films \([0-9]+\)/Good Will Hunting \([0-9]+\)" max_videos="10" type="movies" movie_set=" Hulu (BlueCop)" />

Bringing it all using a filter:
<subfolder name="Movies/Feature Films/" max_videos="10" type="movies" movie_set=" Hulu (BlueCop)">
<filter>
<regexp>good.*will.*hunting.*</regexp>
</filter>
</subfolder>

I also tried:
<subfolder name="Movies/Feature Films/good.will.hunting" max_videos="10" type="movies" movie_set=" Hulu (BlueCop)" />

I'm stumped. I'm certainly no regex expert, so maybe someone with a clue can help me out.


- bradvido88 - 2011-12-28 21:29

TheCasa Wrote:Now, for the movie thing. Here are a couple ways I've tried the search filters to make it work. None have worked. It could never find the subdirectory:
Copies straight from the sample:
<subfolder name="Movies/Feature Films \([0-9]+\)/Good Will Hunting \([0-9]+\)" max_videos="10" type="movies" movie_set=" Hulu (BlueCop)" />
Bringing it all using a filter:
<subfolder name="Movies/Feature Films/" max_videos="10" type="movies" movie_set=" Hulu (BlueCop)">
<filter>
<regexp>good.*will.*hunting.*</regexp>
</filter>
</subfolder>
I also tried:
<subfolder name="Movies/Feature Films/good.will.hunting" max_videos="10" type="movies" movie_set=" Hulu (BlueCop)" />
I'm stumped. I'm certainly no regex expert, so maybe someone with a clue can help me out.
The BlueCop Hulu sample I made has an exclude that looks like:
Code:
<exclude>        
    <contains>previous page</contains>
    <contains>next page</contains>
</exclude>
That will prevent recursive listings and good will hunting probably isn't on the first page.
Change it to this and you should be good to go
Code:
<exclude>        
    <contains>previous page</contains>
</exclude>
Note: you should definitely leave an exclude for previous page or else you will end up with an infinite loop.

Then in the subfolder, add filters for whatever movies you want
Code:
<subfolder name="Movies/Feature Films/" max_videos="10" type="movies" movie_set=" Hulu (BlueCop)">
    <filter>
        <contains>Good Will Hunting</contains>
    </filter>
</subfolder>
and you'll be good to go. As you want to add other movies, just add another <contains /> to the filter


- Ryoga79 - 2011-12-28 23:10

So suddenly, after upgrading to eden beta, even the example search filters don't seem to work for me. I copied over a clean config.xml file, and the JSON and SQL checks report the connection succeeds. After that, i plugged in the example search filter for bluecop's hulu plugin, and i get this error in the log:

Code:
12/28/2011 04:06:38 PM INFO    Init...          Found source Hulu with path of plugin://plugin.video.hulu/
12/28/2011 04:06:38 PM INFO    Init...          Setting source's custom_parser to: Hulu
12/28/2011 04:06:38 PM INFO    Init...              Next Subfolder: name=Hulu/Popular/Popular Shows \([0-9]+\), recursive=true, type=episodes, max_series=10, max_videos=-1, movie_set=, prefix=, suffix= (Hulu), download=false, compression=, multi_part=false
12/28/2011 04:06:38 PM INFO    Init...          Added Global Exclude, type=contains, value=/No videos available
12/28/2011 04:06:38 PM INFO    Init...          Added Global Exclude, type=regexp, value=/clip[s]?(/|$)
12/28/2011 04:06:38 PM INFO    Init...          Added Global Exclude, type=contains, value=Dragon Ball Z
12/28/2011 04:06:38 PM INFO    Init             Testing connectivity to JSON-RPC interface...
12/28/2011 04:06:38 PM INFO    Init             JSON-RPC connected = true
12/28/2011 04:06:38 PM INFO    Find:Subfolder   Searching for subfolder: Hulu/Popular/Popular Shows \([0-9]+\)
12/28/2011 04:06:38 PM ERROR   Find:Subfolder   No matching subfolder named "Hulu/Popular/Popular Shows \([0-9]+\)" was found. Skipping
12/28/2011 04:06:38 PM INFO    Clean:Hulu       Found 0 videos that are already archived in dropbox from source "Hulu"

It's almost like it's not parsing it as a regex, just a stright-up text field. Any thoughts?


- bradvido88 - 2011-12-28 23:21

Ryoga79 Wrote:So suddenly, after upgrading to eden beta, even the example search filters don't seem to work for me. I copied over a clean config.xml file, and the JSON and SQL checks report the connection succeeds. After that, i plugged in the example search filter for bluecop's hulu plugin, and i get this error in the log:

Code:
12/28/2011 04:06:38 PM INFO    Init...          Found source Hulu with path of plugin://plugin.video.hulu/
12/28/2011 04:06:38 PM INFO    Init...          Setting source's custom_parser to: Hulu
12/28/2011 04:06:38 PM INFO    Init...              Next Subfolder: name=Hulu/Popular/Popular Shows \([0-9]+\), recursive=true, type=episodes, max_series=10, max_videos=-1, movie_set=, prefix=, suffix= (Hulu), download=false, compression=, multi_part=false
12/28/2011 04:06:38 PM INFO    Init...          Added Global Exclude, type=contains, value=/No videos available
12/28/2011 04:06:38 PM INFO    Init...          Added Global Exclude, type=regexp, value=/clip[s]?(/|$)
12/28/2011 04:06:38 PM INFO    Init...          Added Global Exclude, type=contains, value=Dragon Ball Z
12/28/2011 04:06:38 PM INFO    Init             Testing connectivity to JSON-RPC interface...
12/28/2011 04:06:38 PM INFO    Init             JSON-RPC connected = true
12/28/2011 04:06:38 PM INFO    Find:Subfolder   Searching for subfolder: Hulu/Popular/Popular Shows \([0-9]+\)
12/28/2011 04:06:38 PM ERROR   Find:Subfolder   No matching subfolder named "Hulu/Popular/Popular Shows \([0-9]+\)" was found. Skipping
12/28/2011 04:06:38 PM INFO    Clean:Hulu       Found 0 videos that are already archived in dropbox from source "Hulu"

It's almost like it's not parsing it as a regex, just a stright-up text field. Any thoughts?
I assume you upgraded the XBMC.MyLibrary build to the Eden release? (See first post)

Change the log level to DEBUG and I will be able to tell you what's happening.

Also note that the database version numbers for XBMC change when you upgrade XBMC. Make sure you use the correct ones in the Config.xml

Edit: I just rememberd, there are some issues with the JSON-RPC interface querying Plugins and UPNP directories with Eden B1. You may want to use the Dec-10 build until Beta2 is released. See here: http://forum.xbmc.org/showthread.php?tid=114921