Kodi Community Forum
XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) - 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: XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) (/showthread.php?tid=98210)



RE: XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) - spyder - 2012-08-24

(2012-08-24, 05:01)angrycamel Wrote:
(2012-08-24, 04:55)spyder Wrote: Thanks angrycamel, I was modifying a Crackle2 xml file I had and forgot to put the "Crackle" in the subfolder. I have a few different xml files so that I can test new filters to see if they work without rescanning the working filters.

You're welcome. I have a bunch lying around as well from tests. If you need help coming up with one, just post what your trying to do and I will try to help as best I can.
I was trying to make a DIY config file. I tried using "episodes" but it wasn't finding anything. Then I used your "generic" filter and got a show to add a folder and strm files to it, but when I added more show titles it never added other titles even though it was running and retreiving info. I deleted the show it found before "Cool.Tools", ran it again and it only added this one show. I then took out the "Cool Tools" subfolder and it ran without it but got nothing again.



RE: XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) - angrycamel - 2012-08-24

I wrote this whole reply and then found more problems with it and eventually landed on the fact that it will not work period. I am trying another idea with nested subfolder filters but I have to leave for a while and wanted to share my thinking even though it is flawed ;P

Warning: the below advice is incorrect!

(2012-08-24, 20:54)spyder Wrote: I was trying to make a DIY config file. I tried using "episodes" but it wasn't finding anything. Then I used your "generic" filter and got a show to add a folder and strm files to it, but when I added more show titles it never added other titles even though it was running and retreiving info. I deleted the show it found before "Cool.Tools", ran it again and it only added this one show. I then took out the "Cool Tools" subfolder and it ran without it but got nothing again.

The plugin is written kind of strange. First of all, the shows are right there at the root level, without any categorization or anything, so scanning in the root with My.Library isn't exactly obvious but can be done using regex.

How it works is by using the regex_name attribute to filter the subdirectory name from root using a regular expression. In this case that regular expression will match most any combination or length of characters and symbols. A dot matches almost everything and an asterisk is telling it to find 0 or more of the previous (the dot). So translated, anything goes. It will look at every directory under root.

When recursive is set to true, this would run across every single file and directory presented by the plugin at any level of depth below root so be careful with this type of filter. Without a contains filter to limit what is written to disk, who knows how much data could be presented by the plugin!

This filter, in english, looks at all files and folders under root no matter what the names. When looking it is filtering out and processing on those files that have a duration longer than 1000 seconds. Additionally, it is filtering out and processing only items that contain one of the two show names listed in the contains filter delimited by double pipes (Logical OR separators).

PHP Code:
        <DIY path="plugin://plugin.video.diy/" recursive="true" >
            <
subfolder name=".*" type="episodes" regex_name="true">
                <
filter>
                    <
runtime>GT|1000</runtime>
                    <
contains>Bath Crashers || Decked Out</contains>
                </
filter>
            </
subfolder>    
        </
DIY

There is another big problem with this plugin though. If you navigate it manually, you can see real quick that a recursive scan could send your computer off into infinitude. Each season is presented as a subdirectory to each season. There is no end to that and it really violates the entire design paradigm of a directory plugin. Anyways, there is a way around it but it's not the cleanest and it actually means that you will only pickup the default season that is presented. There are of course alternative methods to getting all shows from all seasons, but the filters would be more involved and I like simplicity. You can attempt the complex if you're up for it, I will assist Wink

So to get around it and prevent the recursive scan from diving into those ever-present season folders, we put in an excludes filter to exclude anything containing the word season.

PHP Code:
                <exclude>
                    <
contains>Season</contains>
                </
exclude

Here is the final filter that works pretty well considering the limitations of the plugin. You may have wondered, if we use a filter to only get the shows presented in the top level directory of the show (we exclude the Season folders and those are the only subfolders) why wouldn't we just take recursion off all together? Because we are starting at the root level and need the tool to drill past that to the show directories.

PHP Code:
        <DIY path="plugin://plugin.video.diy/" recursive="true" >
            <
subfolder name=".*" type="episodes" regex_name="true">
                <
filter>
                    <
runtime>GT|1000</runtime>
                    <
contains>Bath Crashers || Decked Out</contains>
                </
filter>
                <
exclude>
                    <
contains>Season</contains>
                </
exclude>
            </
subfolder>    
        </
DIY



RE: XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) - spyder - 2012-08-25

Thanks for trying, I wouldn't have known what to change or why, and would have been going in circles.


RE: XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) - EZ1976 - 2012-08-25

hi everyone.
anyone got Navi-x to work?
thanks



RE: XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) - spanktastic2120 - 2012-08-26

(2012-08-25, 20:24)EZ1976 Wrote: hi everyone.
anyone got Navi-x to work?
thanks

i dont think navi-x is compatible because it is not a video add-on, its a program add-on. but the way navi-x works is by basic plaintext files with links, so if you could manually get those there might be a way to add them in. it would be more complicated on your end than directing the config file to navi-x.


RE: XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) - jaaahaaa - 2012-08-26

Is it possible to use this with XOT? Cant find anything on it


RE: XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) - bittihuduga - 2012-08-26

has anyone tried linking online streams from icefilm for 1channel?
any assistance on this would be very helpful


RE: XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) - EZ1976 - 2012-08-26

(2012-08-26, 09:38)spanktastic2120 Wrote:
(2012-08-25, 20:24)EZ1976 Wrote: hi everyone.
anyone got Navi-x to work?
thanks

i dont think navi-x is compatible because it is not a video add-on, its a program add-on. but the way navi-x works is by basic plaintext files with links, so if you could manually get those there might be a way to add them in. it would be more complicated on your end than directing the config file to navi-x.

thanks buddy.
will try.



RE: XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) - spyder - 2012-08-27

(2012-08-26, 18:38)bittihuduga Wrote: has anyone tried linking online streams from icefilm for 1channel?
any assistance on this would be very helpful
1channel has a beta version with built-in add to library+subscriptions.




RE: XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) - aflores3 - 2012-08-31

Thanks, angrycamel & bradvido, for all the work you've put into this. It's truly an awesome script and works well at getting my PseudoTV setup to be hands-free.

I've read through the entire thread over the course a few weeks, & I didn't see this mentioned. Does anyone have the streams marked as watched when viewing from the library? I can watch an entire episode, have the stream finish and go back to the Season menu & the show will remain as "unwatched." Why does this happen? FWIW, my normal media successfully marks itself as watched upon completion (technically @ 55%).


RE: XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) - bittihuduga - 2012-09-02

(2012-08-27, 17:15)spyder Wrote:
(2012-08-26, 18:38)bittihuduga Wrote: has anyone tried linking online streams from icefilm for 1channel?
any assistance on this would be very helpful
1channel has a beta version with built-in add to library+subscriptions.
Can you pls guide me how to use 1channel and my library?



RE: XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) - spyder - 2012-09-02

(2012-09-02, 00:51)bittihuduga Wrote: Can you pls guide me how to use 1channel and my library?
pm'd




RE: XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) - kerpal2020 - 2012-09-06

Hi everyone,

This might be a dumb question but i've been going through the forum here and can't seem to find exactly what im looking for. Using BlueCop Hulu Plugin, was is the correct code to use to only include the shows: The Daily Show with Jon Stewart as well as The Colbert Report. Currently I have the following written this way but it does not seem to work:

PHP Code:
        <!--This is a sample using the BlueCop Hulu plugin -->
        <
Hulu path="plugin://plugin.video.hulu" recursive="true" regex_name="true" prefix="(H) " >                                                
            
            <!--
Full Episodes fron the top 10 popular shows in Hulu -->
            <
subfolder name="TV/The Daily Show With Jon Stewart (HD)/Episodes \([0-9]+\)" 
                
max_series="10" type="episodes" suffix=" (Hulu)" >
                <
filter>
                    <
regexp>/Episode[s]? \([0-9]+\)/</regexp>                
                </
filter>
                <
exclude>                    
                    <
regexp>/season[s]? \([0-9]+\)</regexp>                
                </
exclude>
            </
subfolder>                            
                        
            <
exclude>                
                <
contains>previous page</contains>                    
                <
contains>next page</contains>            
                <
contains>/Recommended</contains>                    
                <
contains>/Clips</contains>                        
            </
exclude>                    
        </
Hulu

I want to exclude any other shows/features from showing up. Any help would be appreciated. Thanks!


RE: XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) - angrycamel - 2012-09-06

Something like what was done for free cable using the logical OR feature should work well. Modify the following to suite your needs and see if it works better for you.


Code:
        <!-- BlueCop FreeCable Streaming TV Network Content -->
        <FreeCable path="plugin://plugin.video.free.cable" recursive="true" prefix="(F) " >
            <subfolder name="Crackle/Television/Comedy" type="episodes" >
                <filter>
                    <runtime>GT|1200</runtime>
                    <contains>Seinfeld || News Radio</contains>
                </filter>
            </subfolder>
        </FreeCable> 



RE: XBMC.MyLibrary - Scan any source to the library (Hulu/Netflix/Plugins) - transcender - 2012-09-06

I know there was some code that seemed may have been cleaned up, and I know Netflix doesn't exactly work on Linux flavors, but does this officially support Linux flavors of XBMC (XBMCbuntu)?