BUG - File name movies (adapt query string)

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
donmiguel Offline
Junior Member
Posts: 18
Joined: Sep 2012
Reputation: 0
Sad  File name movies (adapt query string)
Post: #1
Hi

I believe something changed with the way that a string for the query is retrieved from the movie file name. I have a pattern for all my movies which was working fine until in some frodo change new movies stopped being recognized.

This is my naming pattern:

abre_los_ojos.[spa.1997.d_alejandro_amenĂ¡bar].avi
arizona_dream.[eng.1992.d_emir_kusturica].avi

I did a test, removing all the stuff between the brackets except the year and it seemed to work better. Anyways I prefer to keep my files the way they are bcs as soon as I rename them all history on this file wihtin XBMC is lost (seen/not seen etc)..


Therefore, where can I change the code ( I assume it's a regular expression) which retrieves the query string from the file name??

Thanks for any help
find quote
Ned Scott Offline
Team-Kodi Wiki Guy
Posts: 20,241
Joined: Jan 2011
Reputation: 253
Location: Arizona, USA
Post: #2
Can you post a debug log? Anything in the brackets should already be disregarded for scraping.

You can make easy links to the XBMC wiki using double brackets around common XBMC words: debug log = debug log, Video library = Video library, SMB = SMB , userdata = userdata, etc
find quote
donmiguel Offline
Junior Member
Posts: 18
Joined: Sep 2012
Reputation: 0
Post: #3
Hi,

So this is a bug somehow, because I'd think that also underscores and dashes should be replaced by whitespace characters.

here are two lines from the xbmc.log file:

Code:
21:12:02 T:139877001897728 WARNING: No information found for item '/media/yak/movies/p/priates_of_the_caribbean_-_dead_mans_chest.[eng.2006].avi', it won't be added to the library.
21:12:02 T:139877001897728 WARNING: No information found for item '/media/yak/movies/p/primal_fear.[eng.1998.d_gregory_hoblit].avi', it won't be added to the library.
find quote
fritsch Offline
Team-XBMC Developer
Posts: 5,706
Joined: Aug 2011
Reputation: 135
Location: Karlsruhe
Post: #4
Name it: "Pirates of the Caribbean Dead Man's Chest (2006).avi" and also name it: "Primal Fear (1996).avi" and all will be fine.
find quote
donmiguel Offline
Junior Member
Posts: 18
Joined: Sep 2012
Reputation: 0
Post: #5
Hi Fritsch.

Thanks, I already had read that in the forum. But as pointed out in the first post, I'd like to avoid that. And also Ned said that the query should work even with my pattern. So I am looking for a solution with the filenames as they are.

Best
find quote
Martijn Offline
Team Kodi
Posts: 11,152
Joined: Jul 2011
Reputation: 161
Location: Dawn of time
Post: #6
'/media/yak/movies/p/priates_of_the_caribbean_-_dead_mans_chest.[eng.2006].avi'

that has a clear typo in the name Smile

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
donmiguel Offline
Junior Member
Posts: 18
Joined: Sep 2012
Reputation: 0
Post: #7
Hehe, true enough..

/media/yak/movies/p/primal_fear.[eng.1998.d_gregory_hoblit].avi I got right tough I think.

And there are many many others that do not get read also. Removing language and director name works, but as said - I'd rather not change all my files.
find quote
fritsch Offline
Team-XBMC Developer
Posts: 5,706
Joined: Aug 2011
Reputation: 135
Location: Karlsruhe
Post: #8
Add custom regex. Xbmc does no black magic...
find quote
donmiguel Offline
Junior Member
Posts: 18
Joined: Sep 2012
Reputation: 0
Post: #9
Hi, yes I could not agree more! I don't like to quote myself, but here it goes:

Quote:Therefore, where can I change the code ( I assume it's a regular expression) which retrieves the query string from the file name??

Do you know by any chance where I can do the black magic myself thenConfused

Thanks.
find quote
Martijn Offline
Team Kodi
Posts: 11,152
Joined: Jul 2011
Reputation: 161
Location: Dawn of time
Post: #10
http://wiki.xbmc.org/?title=Advancedsett...eanstrings

Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

For your mediacenter artwork go to
[Image: fanarttv.png]
find quote
donmiguel Offline
Junior Member
Posts: 18
Joined: Sep 2012
Reputation: 0
Post: #11
Coool, all I need I hope

Thank you very much! Smile Smile
find quote