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)
- bradvido88 - 2011-08-09 03:05
Batch Wrote:Now when the source code is released I see no harm in telling how I did it.The thing is that my script never connects to IceFilms. It only calls the native XBMC plugin for IceFilms, which in turn talk to the IceFilms servers...
All my script does is automate what existing plugins already do in XBMC
- matmabro - 2011-08-09 08:31
As far as the jar file is concerned, that's odd. I did just change icefilms to "icesfilms" in notepad and then in a java text editor. I got an error after running saying the file was corrupt. This is why I figured I had to uncompile and recompile. I am not a programmer by any means but I am familiar with some code. Anyway, thanks bradvido for posting the raw files. I'd like to take a look at it.
Concerning the timeout error, is there any way to just adjust how long until the timeout kicks in? If you just add a couple zeros and get the whole library to load, you can confirm there's nothing actually wrong with the script. It'll all be refinement from there.
- bradvido88 - 2011-08-10 04:29
The timeout can be adjusted, but currently it's hard-coded...
- pkscuot - 2011-08-11 22:42
I've looked through the configuration file docs, and I'm not seeing an option for something I would like to do. Specifically I would like to be able to specify the name of the folder that a given subfolder should create and download to. Here's my specific use case. When using Bluecop's freecable plugin to create links to shows from the CW, the final directory foe every show is called Full Episodes, and that's what XBMC.MyLibrary uses as the folder name in the file system. With just one show from the CW, I can tell XBMC what show that is and everything works fine. But I now have two other showsid like to add, but I can't, as all the episodes will be added in the same Full Episodes directory. Did I miss something in the configuration, or could this get on the implementation list. I know the code is open now, but I've never done any Java or python programming, so it would be a bit of an uphill battle for me to add it myself without someone pointing to exactly where the directory creation code is as we'll as the configuration file parser part.
- matmabro - 2011-08-12 11:52
OK, so I must be retarded or something. I have tried multiple java editors and your basic text editors to try to change the mylibrary jar file. each time I end up with a corrupt file. @bradvido, what encoding did you use on the initial jar file? I've tried all the english ones I could find... I think, but I've found like 50 or so possible options. OR, is there an easy way to edit this so as to not come out with a corrupt file in the end.
@Batch... once I get this damn file edited (or perhaps you can just send me your file you changed) I'd like to sync up just my icefilms favourites folder. What was your trick to slowing down the process so as not to overload icefilms?
--- still stellar script, just working the kinks out. I know my wife will be thrilled once I get this working as she really likes XBMC... just not having to use the plugins.
- pkscuot - 2011-08-15 00:39
I just noticed an interesting XBMC behavior that isn't what I expected (in a good way) that might make this script easier to manage moving forward (if someone can confirm anyway). Here goes.
I'm using XBMC 10.1 (stable) on Windows 7. I noticed tonight that I hadn't gotten the last two episodes of Falling Skies yet even though they are on the TNT web site. I looked at the files in Windows, and the problem was that they aren't named right. Apparently the TNT web site lists the last two episode as 1x108 and 1x109 (clearly not right). I decided to rename them to get XBMC to add them and then see what XBMC.MyLibrary would do with them.
When I renamed then I wasn't thinking, and I went ahead and changed the .mpg extent ion to .strm. Then I scanned for new content in XBMC. The weird thing is that XBMC happily added the .strm files to the library, and they play just fine. So at least on my install of 10.1 you apparently don't need to load the files as .mpg files and then do the database rename after the fact.
If this is all true and can be confirmed it seems like we could fork the code to do things qn easier way if you have 10.1 or have a configuration option for the version of XBMC that could bypass a huge chunk of the renaming logic.
- bradvido88 - 2011-08-15 03:47
pkscuot Wrote:I just noticed an interesting XBMC behavior that isn't what I expected (in a good way) that might make this script easier to manage moving forward (if someone can confirm anyway). Here goes.Good find, but it only works for TV Shows, not Movies or Music Videos:
I believe I had the TV Shows also changed from .mpg to .strm just to keep things consistent, since i had to write the logic for movies and music videos anyway....
- Lunatixz - 2011-08-20 19:02
how do you add a source that doesn't need subfolders... My playon plug in goes directly to list of tv shows... so a subfolder isn't needed...
- amirite - 2011-08-25 17:42
I'm wondering the same thing. I was trying to add South Park Studios as a source, but the root folder contains all the seasons so I wanna just scan in the whole thing.
This app is still going strong for me. I get weird behavior occasionally though... like 'dud' links on some shows that actually start working again after I run another scan. This could just be related to videos that are broken on the plugin side, I haven' tested that thoroughly yet.
any progress on this project from anyone? - akuiraz - 2011-08-30 06:24
Now that the projects source is available, has anyone made any fixes / improvements? Possibly an update for the JSON-RPC commands to support the latest NIGHTLY's?
bradvido88: I would like to try and do some of this myself, however I'm unsure how to set this up in a Java IDE enviornment... which IDE do you use? Eclipse? any explanation on how to setup the project would be very helpful as I seem to be lost on that part.
I took a Java programming coarse in high school but things have changed somewhat since.... thanks in advance~!