English > Scripts and Templates

automatic MovieImport with .nfo-File

<< < (2/3) > >>

layerbreak:
Thx @rick.ca for answering.


--- Quote from: rick.ca on April 20, 2013, 01:04:59 am ---
--- Quote ---I insert your regex in FileScanner at first place but my e.g. movie cant match it.
--- End quote ---

Sorry. I was thinking your "_" delimited the terms. It doesn't, and there's a standard 'find and replace' that changes them to spaces anyway. Try this...I haven't tried that in the program, but the PVD Regex Tester suggests it should work (see attached).

--- End quote ---

OK, first I have renamed all folders and filenames with this super tool antRenamer by replacing the "underscore" with a "space"
e.g.
James_Bond_007_01_James_Bond_jagt_Dr_No_tt0055928_(1962).m2ts
to
James Bond 007 01 James Bond jagt Dr No tt0055928 (1962).m2ts
because I  cant find the solution to replace it in the PVD program.
Then insert your Regex in FileScanner at first place

--- Quote ---(?i)^.+\\(?P<title>[^\\]+)(?P<origtitle>tt\d{7})\ \((?P<year>(19|2\d)\d{2})\)
--- End quote ---

Now its running perfect and match my movies to 100%.
Thank you very much.

Here I found the Regex Tester for PVD

rick.ca:

--- Quote ---because I  cant find the solution to replace it in the PVD program.
--- End quote ---

It's the 'Find and Replace' window at the bottom of the File Scanner configuration. ;)

Glad you got it working.

This may seem to be a 'fringe case', and it does have what might be a more elegant solution. That would be to create a spreadsheet with [Title], [URL] (from the tt number) and [File Path] from a directory listing of video files. The same worksheet might include other personal data (date viewed, rating, etc.) exported from the other application. Once imported, there would be no need for a file scan, and the URL would ensure a 100% accurate import from IMDb.

But this is just one of a number of cases where it would be helpful to have the IMDb tt number saved as a separate field, with a File Scanner variable that will store it and a Web Search variable that will use it (some websites such as TMDb use it as well). As a internal reference, it wouldn't add to what is already done with the URL, but it would be easier to understand as the unique identifier of a movie record. In other words, it wouldn't change the fact is search is no longer required once a valid URL is recorded, but it would be more obvious that's what's happening. At the same time, it would be available for searches of other sites that might use it. In many cases, it could be a handy and reliable reference to external media (eliminating the need to maintain a separate [ID] or media reference).

Nautilus2067:
I am writing an .nfo script at the moment. So if you are a little patient....

Nautilus2067:
Hi there,

I have attached the first draft of the .nfo Import script. It's far from ready but imports already all given fields and locally saved posters and backdrops. It workes for .nfo files created from MovPicNFO. If you can provide an XBMC .nfo file, I could make the necessary adjustments.

Regards,
Oliver

[attachment deleted by admin]

Nautilus2067:
Oh, I have just seen, that you have already posted an XBMC .nfo file. I will take that to make improvements.

Oliver

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version