Use the IMDB ID in the filename to match Movies and Series !?

Hello,

 

I previusly used XBMC and/or Project Valerie for my media needs.

Everything was running just nice and I am quite happy with it.

 

So now. I just "found" PLEX a few days ago and was quite amazed what I could do with my Media collection, when I have a Plex server running on my ReadyNAS.

 

So I installed PMS on my NAS, rebootet and added some sections.

 

Problem is. The scanners are not recognizing my Media files ! :-(

 

I have the following sheme: Title (imdbid) - xy.xxx

or where xy can be "HD","SD" or "3D".

 

So with every media center I used until now this was working just fine.

I really prefer it, because it is for sure the most "on spot" recognision.

 

So when I let PMS run.......it didn't find ANY match!

When I manually "remove" the IMDBID and the "format" it gets recognized just fine.

 

Could you please modify the scanner to first look for an IMDBID, and if there is none in the name, then try using the "usual" search habit ?

 

Or am I doing something wrong?

It would be so easy for the scanner, because it doesn't have to look for the IMDBIB in the meda service providers....because its already there!

 

Hope you guys understand what I tried to explain and agree that it would be a usefull feature!

 

Thanks a lot!

 

Regards

 

Hossa

 

The official naming guide is found here:

http://wiki.plexapp.com/index.php/Media_Naming_and_Organization_Guide

But in basic, it's like this:

Game of Thrones

Season 01

Game of Thrones.S01E01

Game of Thrones.S01E02

Game of Thrones.S01E0x

Season 02

Game of Thrones.S02E01

Game of Thrones.S02E0x

 

Best regards, and welcome on board Plex

Tommy

Hello,

and thank you for your answer!

Yes. I have found the "Naming Guide". And I also understand the structure.

My question is, why are you not using the IMDBID in first place?

And is it possible that you implement this "option" in the future?

I don't think I am the only one, who would love to see this feature.

Especially as I think that this change in software is quite little and easy to do.

Or is there a way that myself can change this somehow?

Thanks!

Regards

Hossa

My question is, why are you not using the IMDBID in first place?

And is it possible that you implement this "option" in the future?

No idea, only Plex can answer that part.

Or is there a way that myself can change this somehow?

What you can do, in case of an incorrect match, is selecting the item in the web manager, and click on fix incorrect match.

Then do a custom search, and delete all prefilled fields, and for the title, enter tt

Best Regards

Tommy

Hi,

yes. I hope Plex will include this "feature" in the future!

Is there some place wehre I can "wish" for it?

Yeah. Thats the strange thing....so when I automatically scan the media files...I get

for example "5 Days of War Tt1486193 Hd" and Plex can't find a match.

But when I manually edit the title and remove the "Tt1486193 Hd" it finds a match right away!!

So my opinion is, that the scanner is having a problem here!

Regards

Hossa

Update:

EVEN WORSE!

When I add a folder to the lets say movie section. It scans all files...doesn't find any match as I described above.

BUT:

When I then click on a file one by one and select "refresh"....it then finds the correct match !!!???

So whats wrong here??

Regards

Hossa

Hi,

yes. I hope Plex will include this "feature" in the future!

Is there some place wehre I can "wish" for it?

Yeah. Thats the strange thing....so when I automatically scan the media files...I get

for example "5 Days of War Tt1486193 Hd" and Plex can't find a match.

But when I manually edit the title and remove the "Tt1486193 Hd" it finds a match right away!!

So my opinion is, that the scanner is having a problem here!

Regards

Hossa

Is that media located in a folder named: "5 days of war (2010)" ?

/T

Nope.

I have one folder named "movies" and in there are all movie files.....in this "test case" only three to make it faster! ;-)

Nope.

I have one folder named "movies" and in there are all movie files.....in this "test case" only three to make it faster! ;-)

That wrong then....It's like this

5 days of war (2010)

5 days of war some IMDB ID and other ignored stuff.mkv

5 days of war some IMDB ID and other ignored stuff..srt

A Movie in the future (2018)

A .Movie.In.The.Future.JustMadeUp.720P.mp4

 

/Tommy

Hi,

I know what you are talking about.

But seriously; why make a folder for each movie, when there is only one file in it....!?

I really don't get the cause of this "scanning behaviour"!

Hope someone from the developers will answer in the futue! ;-)

Regards

and good night

Hossa

Hi,

I know what you are talking about.

But seriously; why make a folder for each movie, when there is only one file in it....!?

Well...You said you read the naming guide, and understood it, yet you didn't follow it. ^_^

Reasoning behind using this vs. IMDB numbers in movie titles I can't tell, but I for once like it, cuz. it makes my HDD structure much more easy to overlook, compared to one folder with all files in it.

And also makes it a lot more easy to digest for the human eye, when you go by naming folders, instead or obscure tt-codes from IMDB, IMHO

Best Regards, and sleep well

Tommy

Good morning,

thanks. I slept good, but to short! :-(

Well my problem is, that I have a collection of lets say 2000 and counting movies and TV series.

And they are all named like "title (imdbid) - xy.ext" for movies and like "title - SxxExx - name - xy.ext" for TV Series.

I sure have different folders for different series and movie formats, but I really don't want to make a folder for each file!

And also renaming all of the files like recommended is the last I want to do!

I just wonder, that why the scanner is searching for the imdbid when its already there....

especially when it can't find the imdbid in the end! ;-)

Hopefully some developer will help me out soon!

Thanks for your patience Tommy! :-)

Regards

Hossa

Is there already a solution for this?

I installed this program today and I am facing following problems:

I have about 2000 movies, each one has a referring IMDB code in its filename:

Some examples:

192784 Metropolis (TT0017136)

193982 Vom Winde verweht 1 (TT0031381)

194083 Rebecca 1 (TT0032976)

194984 Der dritte Mann (TT0041959)

Digit 1-4 is the year, 5-6 is the IMDB rating without comma, then the name of the movie and in the () there is the IMDB-ID.

It would be more than great, if the scanner could, before it's doing in-depth analysis of the file just try to parse, if there is somewhere an IMDB-ID hidden in the filename and if yes, then it could actually already refer to it.

How difficult would it be to implement this feature? 

With this feature, your program will be top-notch.

Hello irinaonline,


It. Looks like i am finally Not the only One with this sorting Methode.


As Nobody Could help me i just Worte my Own Customer Scanner. Search for anmotzet post of me. There everything You Need ist in it!

Have Fun and happy easter


Cheers

Hossa

dear hossa,

may you please send me your last version? I figured out also, that my media files have different extensions (mpg/mp4/mkv ...)

i will try then to adapt.

thank you very much!

@Hossa: i looked in all your topics and posts, search in forum and google for "anmotzet" and also for "Plex scanner imdb", and i could not find your scanner. i would be interested in it as well, as i read the source of all scanners in the scanner thread before writing my own.. Please share if you still have it.

The media id (AniDB ID, IMDB ID, etc...) is chosen by the agent search function to uniquely identify the movie or serie, and in your case should contain the IMDB ID you want: (from the variable aid in the example below, taken from my HAMA agent)

results.Append(MetadataSearchResult(id=aid, name=title, year=media.year, lang=Locale.Language.English, score=100))

The agent doing the metadata scraping need to be amended to get that IMDB ID in the agent search part from the title first if present and assign it.

It should failover to the previously implemented serie search if not present.

Even if the title is wrong, it will be amended by the agent update part latter, since the IMDB ID will be already filled in.

Now from my Absolute Series Scanner i took the regex code and modified it to match imdbid format (tt then 7 digits).

That should give you a pretty good head start, also i do not give warranty on the code

origTitle = ( media.title if movie else media.show ) #title let through by the scanner
match = re.search("/(?Ptt\\d{7})/", origTitle, re.IGNORECASE)
imdbid = match.group('imdbid')
if len(imdbid)==7 and imdbid.startswith("tt") and imdbid[:2].isdigit():
  results.Append(MetadataSearchResult(id=imdbid, name=origTitle, year=media.year, lang=Locale.Language.English, score=100))
  return

Note: I really recommend looking at its source (385 lines) or HAMA one (835 lines), as i have re-written everything for readability since i couldn't make heads or tails of the other agents or scanners at first and i have my own peculiar notepad way of doing concise things). If somebody want similar functionality in the HAMA (HTTP AniDB Metadata Agent) please let me know and i would implement it

I understand your "problem" but have a look on this: you downloaded some software for free with a large community that all have accepted the naming guide and follows this naming convention. Take a batch renamer or something an put just the year in brackets after the title and it will also work. I follow mostly the naming guide, but some movie series I just put into one folder like Rocky and in there are all files. Rocky (1976) (tt0075148) 8.1.mkv and so on. All Movies are correctly identified without a top folder for every file. I haven't looked up the log files but in my opinion plex tries to scrape a year out of the imdbID and couldn't find a match automatically. And maybe try a force refresh to get the info plex think would be the best fitting fr your title

Hello ZeroQI and Amoksen,

this is my post:

https://forums.plex.tv/topic/78326-custom-scanner-use-imdbid-in-filename-instead-of-name-and-year/

There you can find in post # 2 my solution for the problem.

Probably not the best way to do it...but working! ;-)

Cheers

Hossa

Interresting posts.  I'm having issue too with scanner.  Me, I like to download and watch.  Nothing in-between

Maybe I'm missing something here but I've had IMDB & TVDB codes in my file & folder names since back when Plex actually still read them (why this was removed I will never understand) & I've never had an issue because of it.  Maybe because I put parentheses around them like so.

Films

    Star.Trek.(2009).(tt079666)   

       Star.Trek.(2009).(BD).(1080p).(AVC).(DTS5.1).(tt0796366).mkv

or

TV

   Doctor.Who.(2005).(78804)

      Season.01.(15688)

         Doctor.Who.s01e01.Rose.(20050326).(BD).(720p).(AVC).(DD5.1).(295294).mkv