[mythtv-commits] Ticket #6346: Subtitle, Season #, and Episode # support for MythVideo
MythTV
mythtv at cvs.mythtv.org
Tue Mar 31 01:24:43 UTC 2009
#6346: Subtitle, Season #, and Episode # support for MythVideo
---------------------------------------+------------------------------------
Reporter: robert.mcnamara at gmail.com | Owner: awithers
Type: enhancement | Status: assigned
Priority: minor | Milestone: unknown
Component: Plugin - MythVideo | Version: head
Severity: low | Resolution:
Mlocked: 0 |
---------------------------------------+------------------------------------
Comment(by robert.mcnamara at gmail.com):
A new unified patch. Supercedes all previous.
New version adds a lot of fixes. Notably, all image types are now hunted
before downloading. If a cover, fanart, or banner exists for a given
movie or season, the local copy will be used. This saves a lot of
hammering on the grabber sources.
A small improvement to the Season/Episode sort type to make it still
behave as "Title" sort when no seasons or episodes are set (movies).
Biggest improvement is in the parsing of the filenames. All the filename
parsing is replaced with a new function, FilenameToMeta. This determines
the season, episode, title, and subtitle of an imported file. If you have
a file named "Lost S01E01 - Pilot.mpg", you will end up with "Lost" as the
title, "Pilot" as the subtitle, and 01 and 01 for season and episode.
This cleans up a lot of code duplication and parses the subtitle nicely, a
difference from the previous versions of the patch. To make TTVDB work
you only need something close to right in the title, and season and
episode values, but this sets them pretty close right off the bat. Of
course, if season/episode are not present, the old logic works and sets
just the title, with 0/Null values in season/episode/subtitle. In tests,
100% accurate parsing was possible for formats like:
Lost s01e02 - Pilot.ext
Lost 1x02 - Pilot.ext
Lost 1x02.ext
Lost s01e02.ext
It will also work with any period, dash, underscore, or space delimiter.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/6346#comment:9>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list