VioletRed / xbmc-mylibrary

Automatically exported from code.google.com/p/xbmc-mylibrary
0 stars 1 forks source link

Patch: Bug Fixes and New Generic Type #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
See the forum post about the changes here: 
http://forum.xbmc.org/showthread.php?tid=98210&pid=1171802#pid1171802

Change Log
Fixed a problem with the runtime filter not working correctly in the previous 
patch
Added a new type called "generic" to contrast the 3 very specific types 
previously supported to provide support for content that does not have metadata 
readily available from sources like TVDB.
Changed where the forced_series resides in the config XML. You will now find it 
as an attribute of the sub-folder instead of a child element. (Inheritance now 
works).
Changed how the force_series feature is applied. It will now apply to ALL 
scenarios for that sub-folder.

The New Generic Type
This type will scrapes series and title only to build a set of strm files 
without producing .nfo files (since there is no metadata to write). The streams 
do not belong in the movies, tv shows, or music videos output folders so they 
instead write into a folder called "generic" that sits along side the TV Shows 
folder at the same level. Under that level is a sub-folder named using the 
parsed series name, then the series and title are both used in naming the 
written strm file. This works well for content like TED talks, and works even 
better in conjunction with the parser and force_series features. The reason I 
developed this was to produce a directory that is populated with strm files 
that are not scanned into the XBMC library (since they are not movies, music 
videos, or tv shows). Each resulting series level directory is intended to be 
made available to PseudoTV as a directory channel for documentary and learning 
type channels.

Code:
<!-- TED Videos -->
<TED path="plugin://plugin.video.ted.talks" recursive="true" >
    <!-- Newest TED Talks -->
    <subfolder name="Newest Talks" type="generic" suffix=" (TED)" force_series="TED Talks" >

        <!--Parse the series name then the title of the episode -->
        <parser>
            <regexp>()([\w\s*'-:]*)</regexp> <!-- ex: "Show Name: Title of the Episode" -->
            <!--<regexp>([\w\s*'-]*):([\w\s*'-]*)</regexp>- ex: "Show Name: Title of the Episode" -->
        </parser>

    </subfolder>        
</TED>

Output of the Above Configuration

Force Series Feature
The force series feature simply overrides the series parsed by the tool. No 
matter how it came up with the series that it did, this configuration will 
override the parsed value with the value specified instead. The place where it 
is specified in the configuration file has just moved from it's own child 
element over into an attribute of the sub-folder element. This means it will 
follow the same inheritance model as all other sub-folder attributes (child 
sub-folder configurations will assume the same feature unless overridden with 
their own).

Code:
<subfolder name="Newest Talks" type="generic" suffix=" (TED)" force_series="TED 
Talks" >

Original issue reported on code.google.com by robbiene...@gmail.com on 18 Aug 2012 at 4:05

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r12.

Original comment by bradyvid...@gmail.com on 22 Aug 2012 at 12:51

GoogleCodeExporter commented 9 years ago
Patch applied in Rev 12.
Thanks Rob.

Original comment by bradyvid...@gmail.com on 22 Aug 2012 at 12:51