|
Batch Metadata Tools This forums is for discussing the user-created Batch Metadata Tools for SageTV. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
I screwed up the file names, is there hope?
I have a TV series where I screwed up the file names when I ripped them. I have the totally wrong SxEx and wrong series title. However, I do have the correct episode titles. Is there a way to make BMT automatically replace the series name with the correct one, and search just on the titles, and not SxEx?
For example, I have Pink_Panther_Cartoons-S01E11-The_Pink_Tail_Fly.avi I want BMT to search TVDB for "Pink Panther" (seriesid=71554) "The Pink Tail Fly" If I force BMT to search like this manually, I get the metatdata I want. However, I'd like to automate it, since there are 125 or so episodes. I've read about the MediaTitles.xml file, and I tried this feeble attempt: Code:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE titles> <titles> <match> <regex>[\\/]Pink_Panther_Cartoons/Pink_Panther</regex> <metadata type="TV" name="tvdb">71554</metadata> </match> </titles> Code:
2011-08-23 16:10:23,476 - ERROR; /var/media/videos/pink_panther/Pink_Panther_Cartoons-S01E10-Pink_Ice.avi; Pink_Panther_Cartoons-S01E10-Pink_Ice; 2474892; Search Failed for SearchQuery [type=TV, fields={FILE: /var/media/videos/pink_panther/Pink_Panther _Cartoons-S01E10-Pink_Ice.avi,SEASON: 01,DISC: ,RAW_TITLE: Pink Panther Cartoons,CLEAN_TITLE: Pink Panther Cartoons,EPISODE_DA TE: 2011-08-23,QUERY: Pink Panther Cartoons,EPISODE: 10,}, hints=Hints [hints={update_fanart: true,update_metadata: true,scan_ missing_metadata: true,scan_subfolders: true,import_tv_as_recording: false,refresh: false,}]] Drew
__________________
Server HW: AMD Ryzen Threadripper 2990WX 32-Core Server SW: FreeBSD-current, ZFS, linux-oracle-jdk1.8.0, sagetv-server_9.2.2_amd64 Tuner HW: HDHR Client: Nvidia Shield (HD300, HD100 in storage) |
#2
|
||||
|
||||
Not that I want you to go and trash it further but you can use a little naming trick to have BMT search by the titles you have in your filenames.
In the manual you'll see that adding a dash dash will do a fuzzy lookup by title: Series -- EpisodeTitle This is used to match TV shows, in the event that you do not know the specific Season and Episode values, but you do know the Episode Title. The Series and Episode must be separated by 2 dashes. Examples House -- Random Episode.avi Lie to Me -- Pilot.avi So you could process your filenames with another renaming tool to take out the SxxExx info and replace it with -- and let it fly with BMT. Maybe have to tweak a few but it could be better than the alternative. Otherwise if your sxxexx are consistently off some renames will allow you to do some regex arguments to change it... |
#3
|
|||
|
|||
Quote:
It is not possible to screw it up further Drew
__________________
Server HW: AMD Ryzen Threadripper 2990WX 32-Core Server SW: FreeBSD-current, ZFS, linux-oracle-jdk1.8.0, sagetv-server_9.2.2_amd64 Tuner HW: HDHR Client: Nvidia Shield (HD300, HD100 in storage) |
#4
|
|||
|
|||
Quote:
Code:
% echo Pink_Panther_Cartoons-S01E11-The_Pink_Tail_Fly.avi | sed -e 's|_Cartoons\-S01E[0-9]*|\-|g' Pink_Panther--The_Pink_Tail_Fly.avi Thanks, Drew
__________________
Server HW: AMD Ryzen Threadripper 2990WX 32-Core Server SW: FreeBSD-current, ZFS, linux-oracle-jdk1.8.0, sagetv-server_9.2.2_amd64 Tuner HW: HDHR Client: Nvidia Shield (HD300, HD100 in storage) |
#5
|
||||
|
||||
Quote:
I would put spaces around the -- so that it's "Series -- Episode Name", and also, unless you have a perference for it, I'd drop the underscores the use spaces, so it would be "Pink Panther -- The Pink Tall Fly.avi"... I think BMT MAY remove the underscores, but I'm not 100% sure.
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#6
|
|||
|
|||
Quote:
Thanks! Drew
__________________
Server HW: AMD Ryzen Threadripper 2990WX 32-Core Server SW: FreeBSD-current, ZFS, linux-oracle-jdk1.8.0, sagetv-server_9.2.2_amd64 Tuner HW: HDHR Client: Nvidia Shield (HD300, HD100 in storage) |
#7
|
||||
|
||||
That's oK, I'm a unix guy as well
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
#8
|
|||
|
|||
BTW, thanks a million. That worked!
Drew
__________________
Server HW: AMD Ryzen Threadripper 2990WX 32-Core Server SW: FreeBSD-current, ZFS, linux-oracle-jdk1.8.0, sagetv-server_9.2.2_amd64 Tuner HW: HDHR Client: Nvidia Shield (HD300, HD100 in storage) |
#9
|
||||
|
||||
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Recorded file names with Unicode | lenkost | SageTV Software | 1 | 11-30-2008 12:17 AM |
UTF-16 File Names throwing playback exception on mp3 | PAF | SageTV Beta Test Software | 3 | 08-14-2008 02:43 PM |
Adding More Details to File Names of Recordings | Slugger | SageTV Studio | 2 | 04-13-2007 07:42 PM |
Change TV Recording File Names & Other questions? | rdb4133 | SageTV Software | 3 | 11-05-2005 12:34 AM |