davels / tvdb-bulk-update
MythTV bulk update script using www.tvdb.com. Set MythVideo metadata and posters for tv episodes.
Clone this repository (size: 61.7 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/davels/tvdb-bulk-update/
| commit 54: | d92717cd9c00 |
| parent 53: | d0f2bd8b55d9 |
| branch: | default |
better detection of episode number in name parser
S01E12.720p was being interpreted as episode 12.720 instead of 12
Changed (Δ10 bytes):
raw changeset »
tvdb_bulk_update.py (5 lines added, 5 lines removed)
Up to file-list tvdb_bulk_update.py:
| … | … | @@ -150,15 +150,15 @@ ROOTS = [] |
150 |
150 |
|
151 |
151 |
NAME_PARSERS = [ |
152 |
152 |
# .../Lost/season 2/[Lost - 2x]10 Everybody Hates Hugo.avi |
153 |
r"/(?P<series>[^/]+)/(season|volume) (?P<season>[0-9]+)[^/]*/([^/]+? - )?([0-9]+x|[Ss][0-9]+[Ee])?(?P<episode>[0-9]+(\.[0-9]+ |
|
153 |
r"/(?P<series>[^/]+)/(season|volume) (?P<season>[0-9]+)[^/]*/([^/]+? - )?([0-9]+x|[Ss][0-9]+[Ee])?(?P<episode>[0-9]+(\.[0-9]+\b)?)[^/]+$", |
|
154 |
154 |
# .../Lost - 2x04 Everybody Hates Hugo.avi |
155 |
r"/(?P<series>[^/]+)( - |\.)(?P<season>[0-9]+)x(?P<episode>[0-9]+(\.[0-9]+ |
|
155 |
r"/(?P<series>[^/]+)( - |\.)(?P<season>[0-9]+)x(?P<episode>[0-9]+(\.[0-9]+\b)?)[^/]+$", |
|
156 |
156 |
# .../Lost 2x04 Everybody Hates Hugo.avi |
157 |
r"/(?P<series>[^/]+) +(?P<season>[0-9]+)x(?P<episode>[0-9]+(\.[0-9]+ |
|
157 |
r"/(?P<series>[^/]+) +(?P<season>[0-9]+)x(?P<episode>[0-9]+(\.[0-9]+\b)?)[^/]+$", |
|
158 |
158 |
# .../Lost - S02E04 Everybody Hates Hugo.avi |
159 |
r"/(?P<series>[^/]+)( - |\.)[Ss](?P<season>[0-9]+)[Ee](?P<episode>[0-9]+(\.[0-9]+ |
|
159 |
r"/(?P<series>[^/]+)( - |\.)[Ss](?P<season>[0-9]+)[Ee](?P<episode>[0-9]+(\.[0-9]+\b)?)[^/]+$", |
|
160 |
160 |
# .../Lost S02E04 Everybody Hates Hugo.avi |
161 |
r"/(?P<series>[^/]+) +[Ss](?P<season>[0-9]+)[Ee](?P<episode>[0-9]+(\.[0-9]+ |
|
161 |
r"/(?P<series>[^/]+) +[Ss](?P<season>[0-9]+)[Ee](?P<episode>[0-9]+(\.[0-9]+\b)?)[^/]+$", |
|
162 |
162 |
] |
163 |
163 |
|
164 |
164 |
DVD_NAMES = [] |
