myjunkmalebox 8 Posted September 15, 2022 Posted September 15, 2022 Would be nice if there was a way we could specify the format for a season or folder. Something at the Series and or Season level where I could enter "{SeasonNum}.{EpisodeNum} - {Title}" (or similar) then Emby could convert that into the Regex it needs to get the fields and do proper processing. Then people could use what ever format they want and have each season have individual formats if needed. Added bonus, you wouldn't have to ever add more name formats for people 2 3
Luke 42224 Posted September 15, 2022 Posted September 15, 2022 HI, yes something like this is something I've been wanting to add. It's possible for future updates. Thanks. 2
liyefei 1 Posted December 23, 2022 Posted December 23, 2022 This is a good idea. I think many people need this fuction. 1
HTanner 6 Posted January 21, 2025 Posted January 21, 2025 I don't have a problem with TV shows, but some movies aren't identified properly. In particular, when I have a collection of movies and prefix the movie names with numbers, Emby can't identify the movie. For example: u:\movies\action\marvel\the infinity saga\Phase 1 u:\movies\action\marvel\the infinity saga\Phase 2 u:\movies\action\marvel\the infinity saga\Phase 3 u:\movies\action\marvel\the infinity saga\Phase 1\1 Iron Man [2008] [Remastered]-clearlogo.png u:\movies\action\marvel\the infinity saga\Phase 1\1 Iron Man [2008] [Remastered]-fanart.jpg u:\movies\action\marvel\the infinity saga\Phase 1\1 Iron Man [2008] [Remastered]-poster.jpg u:\movies\action\marvel\the infinity saga\Phase 1\1 Iron Man [2008] [Remastered].en.srt u:\movies\action\marvel\the infinity saga\Phase 1\1 Iron Man [2008] [Remastered].mp4 u:\movies\action\marvel\the infinity saga\Phase 1\1 Iron Man [2008] [Remastered].nfo u:\movies\action\marvel\the infinity saga\Phase 1\2 The Incredible Hulk [2008]-clearlogo.png u:\movies\action\marvel\the infinity saga\Phase 1\2 The Incredible Hulk [2008]-fanart.jpg u:\movies\action\marvel\the infinity saga\Phase 1\2 The Incredible Hulk [2008]-poster.jpg u:\movies\action\marvel\the infinity saga\Phase 1\2 The Incredible Hulk [2008].en.srt u:\movies\action\marvel\the infinity saga\Phase 1\2 The Incredible Hulk [2008].mp4 u:\movies\action\marvel\the infinity saga\Phase 1\2 The Incredible Hulk [2008].nfo u:\movies\action\marvel\the infinity saga\Phase 1\3 Iron Man 2 [2010]-clearlogo.png u:\movies\action\marvel\the infinity saga\Phase 1\3 Iron Man 2 [2010]-fanart.jpg u:\movies\action\marvel\the infinity saga\Phase 1\3 Iron Man 2 [2010]-poster.jpg u:\movies\action\marvel\the infinity saga\Phase 1\3 Iron Man 2 [2010].mkv u:\movies\action\marvel\the infinity saga\Phase 1\3 Iron Man 2 [2010].nfo or u:\movies\collections\japenese masters\zatoichi\[01] The Tale of Zatoichi [1962] [7.6]-poster.jpg u:\movies\collections\japenese masters\zatoichi\[01] The Tale of Zatoichi [1962] [7.6].avi u:\movies\collections\japenese masters\zatoichi\[01] The Tale of Zatoichi [1962] [7.6].nfo u:\movies\collections\japenese masters\zatoichi\[02] The Tale of Zatoichi Continues [1962] [7.2]-poster.jpg u:\movies\collections\japenese masters\zatoichi\[02] The Tale of Zatoichi Continues [1962] [7.2].avi u:\movies\collections\japenese masters\zatoichi\[02] The Tale of Zatoichi Continues [1962] [7.2].nfo u:\movies\collections\japenese masters\zatoichi\[03] New Tale of Zatoichi [1963] [7.4]-poster.jpg u:\movies\collections\japenese masters\zatoichi\[03] New Tale of Zatoichi [1963] [7.4].avi u:\movies\collections\japenese masters\zatoichi\[03] New Tale of Zatoichi [1963] [7.4].nfo u:\movies\collections\japenese masters\zatoichi\[04] Zatoichi the Fugitive [1963] [7.2]-poster.jpg u:\movies\collections\japenese masters\zatoichi\[04] Zatoichi the Fugitive [1963] [7.2].avi u:\movies\collections\japenese masters\zatoichi\[04] Zatoichi the Fugitive [1963] [7.2].nfo u:\movies\collections\japenese masters\zatoichi\[05] Zatoichi on the Road [1963] [7.2]-poster.jpg u:\movies\collections\japenese masters\zatoichi\[05] Zatoichi on the Road [1963] [7.2].avi u:\movies\collections\japenese masters\zatoichi\[05] Zatoichi on the Road [1963] [7.2].en.srt u:\movies\collections\japenese masters\zatoichi\[05] Zatoichi on the Road [1963] [7.2].nfo Of course I can right click the movie and select "Identify", which I've done, but I'd prefer if it identified these names on its own. I'd also accept an option for me to customize the file name scanner by specifying a regular expression. It would only use this regular expression if the normal parser couldn't identify the movie. Thanks for your consideration!
Luke 42224 Posted January 21, 2025 Posted January 21, 2025 1 hour ago, HTanner said: I don't have a problem with TV shows, but some movies aren't identified properly. In particular, when I have a collection of movies and prefix the movie names with numbers, Emby can't identify the movie. For example: u:\movies\action\marvel\the infinity saga\Phase 1 u:\movies\action\marvel\the infinity saga\Phase 2 u:\movies\action\marvel\the infinity saga\Phase 3 u:\movies\action\marvel\the infinity saga\Phase 1\1 Iron Man [2008] [Remastered]-clearlogo.png u:\movies\action\marvel\the infinity saga\Phase 1\1 Iron Man [2008] [Remastered]-fanart.jpg u:\movies\action\marvel\the infinity saga\Phase 1\1 Iron Man [2008] [Remastered]-poster.jpg u:\movies\action\marvel\the infinity saga\Phase 1\1 Iron Man [2008] [Remastered].en.srt u:\movies\action\marvel\the infinity saga\Phase 1\1 Iron Man [2008] [Remastered].mp4 u:\movies\action\marvel\the infinity saga\Phase 1\1 Iron Man [2008] [Remastered].nfo u:\movies\action\marvel\the infinity saga\Phase 1\2 The Incredible Hulk [2008]-clearlogo.png u:\movies\action\marvel\the infinity saga\Phase 1\2 The Incredible Hulk [2008]-fanart.jpg u:\movies\action\marvel\the infinity saga\Phase 1\2 The Incredible Hulk [2008]-poster.jpg u:\movies\action\marvel\the infinity saga\Phase 1\2 The Incredible Hulk [2008].en.srt u:\movies\action\marvel\the infinity saga\Phase 1\2 The Incredible Hulk [2008].mp4 u:\movies\action\marvel\the infinity saga\Phase 1\2 The Incredible Hulk [2008].nfo u:\movies\action\marvel\the infinity saga\Phase 1\3 Iron Man 2 [2010]-clearlogo.png u:\movies\action\marvel\the infinity saga\Phase 1\3 Iron Man 2 [2010]-fanart.jpg u:\movies\action\marvel\the infinity saga\Phase 1\3 Iron Man 2 [2010]-poster.jpg u:\movies\action\marvel\the infinity saga\Phase 1\3 Iron Man 2 [2010].mkv u:\movies\action\marvel\the infinity saga\Phase 1\3 Iron Man 2 [2010].nfo or u:\movies\collections\japenese masters\zatoichi\[01] The Tale of Zatoichi [1962] [7.6]-poster.jpg u:\movies\collections\japenese masters\zatoichi\[01] The Tale of Zatoichi [1962] [7.6].avi u:\movies\collections\japenese masters\zatoichi\[01] The Tale of Zatoichi [1962] [7.6].nfo u:\movies\collections\japenese masters\zatoichi\[02] The Tale of Zatoichi Continues [1962] [7.2]-poster.jpg u:\movies\collections\japenese masters\zatoichi\[02] The Tale of Zatoichi Continues [1962] [7.2].avi u:\movies\collections\japenese masters\zatoichi\[02] The Tale of Zatoichi Continues [1962] [7.2].nfo u:\movies\collections\japenese masters\zatoichi\[03] New Tale of Zatoichi [1963] [7.4]-poster.jpg u:\movies\collections\japenese masters\zatoichi\[03] New Tale of Zatoichi [1963] [7.4].avi u:\movies\collections\japenese masters\zatoichi\[03] New Tale of Zatoichi [1963] [7.4].nfo u:\movies\collections\japenese masters\zatoichi\[04] Zatoichi the Fugitive [1963] [7.2]-poster.jpg u:\movies\collections\japenese masters\zatoichi\[04] Zatoichi the Fugitive [1963] [7.2].avi u:\movies\collections\japenese masters\zatoichi\[04] Zatoichi the Fugitive [1963] [7.2].nfo u:\movies\collections\japenese masters\zatoichi\[05] Zatoichi on the Road [1963] [7.2]-poster.jpg u:\movies\collections\japenese masters\zatoichi\[05] Zatoichi on the Road [1963] [7.2].avi u:\movies\collections\japenese masters\zatoichi\[05] Zatoichi on the Road [1963] [7.2].en.srt u:\movies\collections\japenese masters\zatoichi\[05] Zatoichi on the Road [1963] [7.2].nfo Of course I can right click the movie and select "Identify", which I've done, but I'd prefer if it identified these names on its own. I'd also accept an option for me to customize the file name scanner by specifying a regular expression. It would only use this regular expression if the normal parser couldn't identify the movie. Thanks for your consideration! This right here is going to be a challenge to handle automatically: Quote 3 Iron Man 2 Why, because when you search for it on moviedb, this is what you get: https://www.themoviedb.org/search?query=3 Iron Man 2&language=en-US
HTanner 6 Posted January 21, 2025 Posted January 21, 2025 (edited) That's why I asked for an option for a regular expression. This way I could tell Emby to ignore the leading numbers. But only use the regular expression if the regular search comes up empty. This way a movie that starts with a number would still be found. Edited January 21, 2025 by HTanner
Luke 42224 Posted January 21, 2025 Posted January 21, 2025 52 minutes ago, HTanner said: That's why I asked for an option for a regular expression. This way I could tell Emby to ignore the leading numbers. But only use the regular expression if the regular search comes up empty. This way a movie that starts with a number would still be found. The challenge is that it doesn't really work like this. The two parts of the server are not connected. The filename is first parsed to determine a title and year. Then, later, a metadata lookup happens based on that result. So if we gave you the ability to customize the regexes, you would have to produce a regex that could find the title and year from the filename, without knowing what the result from moviedb would be later.
HTanner 6 Posted January 24, 2025 Posted January 24, 2025 On 1/21/2025 at 5:42 PM, Luke said: So if we gave you the ability to customize the regexes, you would have to produce a regex that could find the title and year from the filename, without knowing what the result from moviedb would be later. If you notice, I do provide the title and year in my filenames. So yes, this would be acceptable to me.
Luke 42224 Posted January 24, 2025 Posted January 24, 2025 5 hours ago, HTanner said: If you notice, I do provide the title and year in my filenames. So yes, this would be acceptable to me. Right but you said this: Quote But only use the regular expression if the regular search comes up empty. This way a movie that starts with a number would still be found. It wouldn't work this way. You have to produce one result, and then this is what gets fed into the metadata lookups.
stevewalison 1 Posted 1 hour ago Posted 1 hour ago Had a similar request to be able to configure a separate library which has no defined folder structure. Regex patterns can be used to locate files in the folders and attach to a TV series. For my scenario, each of these series have no associated metadata to be looked up, and each series is manually added with relevant metadata. Content of request pasted below. ------------------------------------------------------------------------------------------ I have live racing replay media which is not available in the normal "SXXEXX" or similar format, but is named "YYYY Round XX". Currently, I duplicate the content for tracking in emby which is renamed and spread across multiple folders for different series. I then keep another clean copy of the content for seeding. If we could provide a custom regex string for specific folders, series, or libraries for custom name handling of content, I could easily provide emby with the information on handling the content. Similarly, the regex string could also allow a single folder to have multiple separate TV Shows. For example Pre-Race show, Race and Post-Race show. For example, the content might be available in the following folder format: - 2026 AMA Supercross Rd 11 Detroit 1080p60 x265.mkv - 2026 AMA Supercross Rd 11 Detroit Post Show 1080p60 x265.mkv For the main race content, I could just a regex pattern below which provides season and episode as named groups, and would only get the race. 20(?'season'\d\d) AMA Supercross Rd (?'episode'[\d]+)( [a-zA-Z]+){1,2}(?:Post Show(*FAIL)|) [0-9p]+ x26[45] For post race content, a separate regex pattern for the series could be done which forces pattern matching for the post show. 20(?'season'\d\d) AMA Supercross Rd (?'episode'[\d]+)( [a-zA-Z]+){1,2} (Post Show) [0-9p]+ x26[45] This is one example, but other content might be 4-6 different races throughout the event with unique naming and tags. I was thinking each pattern could be added similar to adding "Folders" but each Regex pattern creates a separate TV series with all of the matches. Each regex pattern would scan all of the content in the indicated folders to build up the series database. Thanks,
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now