Ticket #67 (closed Defect: wontfix)
Sapphire needs better recognition of movies by file name
| Reported by: | scstraus@… | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Other | Version: | 1.0b4.2 |
| Keywords: | Cc: |
Description
I have to rename about 25% of the files I have in order to get them properly recognized by Sapphire. Most of these are very simple things that can be handled with a 5 minute change to the text parsing. One example is that is won't regonize a tv show with a naming convention
Tv.show.name[s01][e02]
Basically any time it sees the text s[number]e[number] separated by any non alphanumeric characters (maybe maximum of 3), should be accepted as a tv show.
I've had a lot of similar problems recognizing movies that have additional information after the movie name, such as
The.Good.Soldier[Xvid]Torrent_Spy(Best Quality).xvid
Actually I don't know if that above one will parse correctly or not, but about 20% of the movies I have, I have to strip out periods or information after the file name. In almost all cases the extraneous information is separated by a special character that is not a . or a _ or a - or a space (I think those characters should all be treated as a space in the name.
Of course, ideally the parser should try a number of different ways of looking at the filename to find a match. These above ideas can be added to the existing ways.
Change History
comment:2 Changed 5 years ago by gbooker
- Summary changed from Sapphire needs better recognition of TV shows and movies by file name to Sapphire needs better recognition of movies by file name
Read: http://appletv.nanopi.net/19/sapphire-supported-tv-show-file-naming-conventions/ We will not be changing the naming conventions for TV shows. Every single group we have ever seen conform to one of these conventions.
Leaving ticket open only for the portion about extra data at the end of a movie title
comment:3 Changed 5 years ago by scstraus@…
Mine is acting very strangely now, when it encountered the following names it gives me only the option "<This is not a TV Show>", and doesn't list any show names:
boston.legal.s04e09.hdtv.xvid-dot.[VTV].avi boston.legal.s04e10.hdtv.xvid-xor.[VTV].avi my.name.is.earl.311.hdtv-lol.[VTV].avi my.name.is.earl.311.hdtv-xor.[VTV].avi
I went and renamed one of them boston.legal.s04e08.avi and it started just skipping it but never added it to the tv shows menu. I tried renaming it again boston legal s04e08.avi and it still just skipped it. I tried to tell it to reimport metadata, and it still just skips it.
comment:4 Changed 5 years ago by gbooker
tvrage is down. Until it is back up, no metadata can be fetched on TV shows. They are going through a server upgrade (which it said a few hours ago, now it gives a 404 error on its main page).
comment:5 Changed 5 years ago by anonymous
oh thank god, I thought I had really botched things up. You guys are awesome at support! I've never seen anyone reply so quickly. Would be good if there was some error message if it couldn't contact tvrage, but now I know so I won't be surprised next time.
comment:6 Changed 5 years ago by scstraus
Most stuff imports fine now, but it still doesn't put file data in for these ones (I can see them if I go to the movies directory, but not in tv shows:
Mythbusters.S05E25.Air.Plane.Hour.HDTV.Xvid-FQM.avi MythBusters?.S05E24.WS.DSR.XviD-SYS.avi
They play fine if I click on them through sapphire->Movies directory but it never recognizes them as tv shows.
comment:7 Changed 5 years ago by anonymous
Sorry, there shouldn't have been a ? after the MythBusters? on the 2nd one.
comment:8 Changed 5 years ago by scstraus
For whetever reason it just refuses to import any mythbusters no matter what I name it or how I organize it. About 10 episodes and it won't take any of them, no matter if I clear metadata or tell it to get metadata for that file.
comment:10 Changed 5 years ago by antifuchs
scstraus: Check out the tvrage site for MythBusters?. I guess you (like the release groups, and me in ticket #33) are naming MythBusters? episodes with the last season being 5, while tvrage thinks that it's in the middle of season 6 by now.
comment:11 follow-up: ↓ 13 Changed 5 years ago by scstraus
That would explain it. It would be nice if it wasn't so tied to what tvrage says. If it asked me which show it was and then simply put it in the list without episode information. The episode information isn't nearly as important as just having the episode shown in the list of possibilities.
Here's another couple - regognizes "Heroes - S01.E05.avi" as a movie
completely ignores the movie "Juno.Axxo[2007]DvdRip?.Xvid.Eng.avi
I'd assume it doesn't like the Axxo in the last one. What would be good would be if it searched tvrage by each word singly, adding each as it goes. In this example searching first for just "Juno", then searching for "Juno Axxo". In this case Juno is the correct movie title.
Thanks for keeping this open so I can attempt to help you improve this.
comment:12 Changed 5 years ago by scstraus
comment:13 in reply to: ↑ 11 Changed 5 years ago by gbooker
- Status changed from new to closed
- Resolution set to wontfix
Replying to scstraus:
regognizes "Heroes - S01.E05.avi" as a movie
Read my first reply.
You should also read this http://appletv.nanopi.net/manual/overriding-metadata
comment:14 Changed 3 years ago by Crissov
So the current matching is this:
- <show name> S<season number>E<episode number> <episode title><anything>.ext
- -?S[0-9]+E[S0-9]+
- <show name> <season number>x<episode number> <episode title><anything>.ext
- -?[0-9]+x[S0-9]+
- <show name> <season number><episode number> <episode title><anything>.ext
- -[0-9]{1,3}[S0-9]{2}[\. -]
I wish it also supported folder style:
- <show name>/<season number>/<episode number> <episode title><anything>.ext
- /S?[0-9]+/E?[S0-9]+-
- or
- /[0-9]+/[S0-9]+-
- or
- /.*[0-9]+/[\(\[\{]?E?[S0-9]+[\)\]\}]?-
When Sapphire thinks a TV show file is a movie or vice versa we should be able to tell it, not only say “this is not a movie” (or “… TV show”). We should also be able to say “this is a movie, but none of the suggested ones”.
comment:15 Changed 3 years ago by gbooker
Crissov, patches welcome.

I'm seeing the same issue with one of my tv shows. Filename is "Band of Brothers - Part 1 - Currahee.avi" However the get tv show info importer does not recognize it as a TV show. TVRage will respond with the correct information when queried (from the website) with the full filename.
An option to tag a file as TVShow or Movie, or to manually enter the IMDB number or TVRage number (is there one?) would be nice. Then any files that Sapphire didn't recognize we could manually (with the GUI, not the CLI) associate it to a known IMDB or TVRage entry and then Sapphire could import the poster, etc.