YAMJ / yamj-v2

Yet Another Movie Jukebox (YAMJ) v2
GNU General Public License v3.0
28 stars 11 forks source link

Issue when curly brackets in filename {} #1911

Closed Omertron closed 9 years ago

Omertron commented 9 years ago

Original issue 1912 created by Omertron on 2011-05-07T13:00:14.000Z:

I get this same error each time there curly brackets in a filename:

[13:43:59 - Thread-11] ERROR moviejukebox - ImdbPlugin: Error locating the IMDb ID in the nfo file for Arizona Dream (1992) {1080p} VF [13:43:59 - Thread-11] ERROR moviejukebox - Unclosed counted closure near index 27 (Arizona Dream (1992) {1080p} VF)[\W].?(tt\d{7}) ^ [13:44:19 - Thread-15] ERROR moviejukebox - ImdbPlugin: Error locating the IMDb ID in the nfo file for Bad Boys (1983) {1080p}.VF [13:44:19 - Thread-15] ERROR moviejukebox - Unclosed counted closure near index 22 (Bad Boys (1983) {1080p})[\W].?(tt\d{7}) ^ [13:44:22 - Thread-13] ERROR moviejukebox - ImdbPlugin: Error locating the IMDb ID in the nfo file for Bad Lieutenant Escale à La Nouvelle-Orléans (2010) {1080p}.Werner Herzog. Nicolas Cage, Eva Mendes, Val Kilmer.VF.VO [13:44:22 - Thread-13] ERROR moviejukebox - Unclosed counted closure near index 57 (Bad Lieutenant Escale à La Nouvelle-Orléans (2010) {1080p} Werner Herzog Nicolas Cage, Eva Mendes, Val Kilmer)[\W].?(tt\d{7}) ^ [13:44:27 - Thread-12] ERROR moviejukebox - ImdbPlugin: Error locating the IMDb ID in the nfo file for Bad Boys (1995) {1080p}.VF [13:44:27 - Thread-12] ERROR moviejukebox - Unclosed counted closure near index 22 (Bad Boys (1995) {1080p})[\W].?(tt\d{7}) ^ [13:45:47 - Thread-14] ERROR moviejukebox - ImdbPlugin: Error locating the IMDb ID in the nfo file for Brothers (2009) Jake Gyllenhaal, Tobey Maguire, Natalie Portman.{1080p}.VF [13:45:47 - Thread-14] ERROR moviejukebox - Unclosed counted closure near index 70 (Brothers (2009) Jake Gyllenhaal, Tobey Maguire, Natalie Portman {1080p})[\W]._?(tt\d{7}) ^ [13:46:27 - Thread-13] ERROR moviejukebox - Failed reading file VIDEOTS [13:46:27 - Thread-13] ERROR moviejukebox - ImdbPlugin: Error locating the IMDb ID in the nfo file for Chasseur blanc, coeur noir (1989.Clint Eastwood.VOSTFR [13:46:27 - Thread-13] ERROR moviejukebox - Unclosed group near index 65 (Chasseur blanc, coeur noir (1989 Clint Eastwood)[\W].?(tt\d{7}) ^ [13:46:27 - Thread-13] ERROR moviejukebox - ImdbPlugin: Error locating the IMDb ID in the nfo file for Chasseur blanc, coeur noir (1989.Clint Eastwood.VOSTFR [13:46:27 - Thread-13] ERROR moviejukebox - Unclosed group near index 65 (Chasseur blanc, coeur noir (1989 Clint Eastwood)[\W].?(tt\d{7}) ^ [13:46:27 - Thread-13] ERROR moviejukebox - ImdbPlugin: Error locating the IMDb ID in the nfo file for Chasseur blanc, coeur noir (1989.Clint Eastwood.VOSTFR [13:46:27 - Thread-13] ERROR moviejukebox - Unclosed group near index 65 (Chasseur blanc, coeur noir (1989 Clint Eastwood)[\W].?(tt\d{7}) ^ [13:46:27 - Thread-13] ERROR moviejukebox - ImdbPlugin: Error locating the IMDb ID in the nfo file for Chasseur blanc, coeur noir (1989.Clint Eastwood.VOSTFR [13:46:27 - Thread-13] ERROR moviejukebox - Unclosed group near index 65 (Chasseur blanc, coeur noir (1989 Clint Eastwood)[\W].*?(tt\d{7}) ^ [13:46:41 - Thread-14] ERROR moviejukebox - AllocinePlugin: Can't find informations for movie with id: 3633 [13:47:56 - Thread-14] ERROR moviejukebox - ImdbPlugin: Error locating the IMDb ID in the nfo file for Deux Soeurs Pour Un Roi (2008) {1080p}.VF [13:47:56 - Thread-14] ERROR moviejukebox - Unclosed counted closure near index 37

And it seems to cause YAMJ to search IMDB instead of Allocine.

Thanks for your help.

Omertron commented 9 years ago

Comment #1 originally posted by Omertron on 2011-05-07T13:05:33.000Z:

Same problem when there is a missing parenthesis in the filename. See "Chasseur blanc, coeur noir (1989 Clint Eastwood" above.

Omertron commented 9 years ago

Comment #2 originally posted by Omertron on 2011-05-13T19:43:01.000Z:

This issue was closed by revision r2371.

Omertron commented 9 years ago

Comment #3 originally posted by Omertron on 2011-05-30T17:29:33.000Z:

We have to reopen this one. I use r2433.

1) Movie name is "Chasseur blanc, coeur noir (1989.Clint Eastwood.VOSTFR" This is the folder's name. There is a VIDEO_TS folder inside, with NFO & poster. There is one missing parenthesis in the folder's name. The result is:

[18:05:33 - Thread-16] Movie addMovieFile : file:///opt/sybhttpd/localhost.drives/USB_DRIVE.Films13_R/Chasseur%20blanc%2C%20coeur%20noir%20%281989.Clint%20Eastwood.VOSTFR/VIDEO_TS [18:05:33 - Thread-16] NFOScanner: Scanning NFO file for IDs: VIDEO_TS [18:05:33 - Thread-16] Failed reading file VIDEO_TS

2) Movie name is "The Holiday (2006) [BluRay-Rip] {1080p}.VF.VO". There is a BDMV folder inside + 1 NFO + 1 poster. The result is:

[18:10:05 - Thread-16] AllocinePlugin: Scanning NFO for Allocine Id [18:10:05 - Thread-16] AllocinePlugin: No Allocine Id found in nfo ! [18:10:05 - Thread-16] NFOScanner: Scanning NFO for Poster URL [18:10:05 - Thread-16] NFOScanner: Scanning NFO file for IDs: BDMV [18:10:05 - Thread-16] Failed reading file BDMV

The NFO is valid, there is just one line inside: http://www.allocine.fr/film/fichefilm_gen_cfilm=60426.html

After removing parenthesis from the 1st one and all brackets from 2nd one, no more errors!

Thanks for your help.