[mythtv-commits] Ticket #2734: scripts for fetching metadata for video files automatically
MythTV
mythtv at cvs.mythtv.org
Sun Nov 26 18:58:22 UTC 2006
#2734: scripts for fetching metadata for video files automatically
-------------------------------------------------+--------------------------
Reporter: visit0r <gmail: pekka.jaaskelainen> | Owner: awithers
Type: enhancement | Status: new
Priority: minor | Milestone: unknown
Component: mythvideo | Version: 0.20
Severity: medium |
-------------------------------------------------+--------------------------
I wrote two Python scripts that fetch meta data for video files
automatically. They could be placed to MythVideo/scripts, or somewhere. We
discussed the scripts briefly in IRC with xris and anduin.
The find_meta.py [file/dir] scans the directory of the given video file
for text files which could contain IMDb URLs (basically .nfos). If found,
it fetches meta data from IMDb using the imdbpy.py script. If not found,
it tries "intelligently" to search for the IMDb entry using the video file
name or directory name (in case of DVD backup dirs). It creates
[filename].metadata for video files and video.metadata for video
directories (DVD backups/rips) if meta data was found.
This way of using the script adding meta data for MythVideo is much
easier, as one can just execute find_meta.py -r [videoroot] and magically
get meta data added to all video files which the script could find meta
data for. The current UI in MythVideo is not really usable for adding meta
data for large counts of videos at once. The script can also be executed
in crontab as it does not overwrite old metadata files by default.
The imdbpy.py script (which can be used in MythVideo as an IMDb ripper,
BTW) supports also fetching data for single episodes of TV-series.
anduin agreed to implement importing of these metadata files to MythVideo.
In my opinion, the .metadata files could be also parsed "on the fly" when
browsing the files in MythVideo. This way for example, burned videos could
work nicely without needing to insert to DB the metadata from each burned
disc with videos when watching them.
Please test and comment. I hope the support to MythVideo will be added
soon. I can also help in that, if needed.
--
Ticket URL: <http://cvs.mythtv.org/trac/ticket/2734>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list