Page 1 of 1

[0.7.0B7]Error renaming .nomedia

Posted: May 24th, 2012, 10:18 am
by Taomyn
Sorry to have to report more problems with the .nomedia file, but a download just now failed as follows:

Code: Select all

2012-05-24 17:07:25,542::DEBUG::[tvsort:389] Renaming Series

2012-05-24 17:07:25,543::DEBUG::[tvsort:428] Rename: \\mediaserver\Multimedia\Video\TV\Hit & Miss\Hit & Miss - 1x01 - Episode 1\hit.and.miss.s01e01.720p.hdtv.x264-bia.mkv to \\mediaserver\Multimedia\Video\TV\Hit & Miss\Hit & Miss - 1x01 - Episode 1\Hit & Miss - S01E01 - Episode 1.mkv

2012-05-24 17:07:25,552::DEBUG::[tvsort:1065] Renaming files similar to: hit.and.miss.s01e01.720p.hdtv.x264-bia.mkv to Hit & Miss - S01E01 - Episode 1

2012-05-24 17:07:25,555::DEBUG::[misc:782] Moving. Old path:\\mediaserver\Multimedia\Video\TV\Hit & Miss\Hit & Miss - 1x01 - Episode 1\.nomedia new path:\\mediaserver\Multimedia\Video\TV\Hit & Miss\.nomedia unique?:False

2012-05-24 17:07:25,556::ERROR::[misc:794] Failed moving \\mediaserver\Multimedia\Video\TV\Hit & Miss\Hit & Miss - 1x01 - Episode 1\.nomedia to \\mediaserver\Multimedia\Video\TV\Hit & Miss\.nomedia

2012-05-24 17:07:25,556::INFO::[misc:795] Traceback: 

Traceback (most recent call last):
  File "sabnzbd\misc.pyo", line 791, in move_to_path
  File "shutil.pyo", line 81, in copyfile
IOError: [Errno 2] No such file or directory: '\\\\mediaserver\\Multimedia\\Video\\TV\\Hit & Miss\\Hit & Miss - 1x01 - Episode 1\\.nomedia'
Is it anything to do with the "&" symbol in the series name?

Re: [0.7.0B7]Error renaming .nomedia

Posted: May 24th, 2012, 11:46 am
by shypike
It's not the &.
SeasonSort makes a list of files to be moved, just before .nomedia is deleted.
It shows the traceback because the file is absent afterwards.
Which Sort expression are you using? It looks like I missed a scenario during testing.

Re: [0.7.0B7]Error renaming .nomedia

Posted: May 24th, 2012, 11:55 am
by Taomyn

Code: Select all

%sn/%sn - S%0sE%0e - %en.%ext

Re: [0.7.0B7]Error renaming .nomedia

Posted: May 25th, 2012, 12:09 pm
by Taomyn
Also happened with two movie downloads, one error'd:

Code: Select all

2012-05-25 18:01:02,864::DEBUG::[tvsort:1065] Renaming files similar to: john.carter.2012.1080p.bluray.x264-sparks.mkv to John Carter (2012)

2012-05-25 18:01:02,878::DEBUG::[misc:782] Moving. Old path:\\multimedia\Multimedia\Video\Movies\.\John Carter (2012)\.nomedia new path:\\multimedia\Multimedia\Video\Movies\.nomedia unique?:False

2012-05-25 18:01:02,878::ERROR::[misc:794] Failed moving \\multimedia\Multimedia\Video\Movies\.\John Carter (2012)\.nomedia to \\multimedia\Multimedia\Video\Movies\.nomedia

2012-05-25 18:01:02,880::INFO::[misc:795] Traceback: 

Traceback (most recent call last):
  File "sabnzbd\misc.pyo", line 791, in move_to_path
  File "shutil.pyo", line 81, in copyfile
IOError: [Errno 2] No such file or directory: '\\\\multimedia\\Multimedia\\Video\\Movies\\.\\John Carter (2012)\\.nomedia'
2012-05-25 18:01:02,993::DEBUG::[decoder:96] Decoding <Article: [email protected], bytes=793743, partnum=101, art_id=None
That one left the folder with movie and ".nomedia", but the other didn't error but left the file at the root along with the movie.

Re: [0.7.0B7]Error renaming .nomedia

Posted: May 25th, 2012, 12:16 pm
by shypike
From looking at the code I can understand why it can go wrong.
However, so far I haven't been able to reproduce a scenario in which it actually occurs. Weird.

The net result is that I will fix at least this specific issue and then
disable the feature by default. It requires testing of too many scenarios and therefore
it shouldn't have been added so late in the Beta period.

Re: [0.7.0B7]Error renaming .nomedia

Posted: May 26th, 2012, 12:02 pm
by dogzipp
I am also having problem with .nomedia and 0.7.0b7

Code: Select all

2012-05-26 09:59:35,699::DEBUG::[misc:782] Moving. Old path:/mnt/DroboFS/Shares/Drobo/video/./Downton.Abbey.S01E03.720p.BluRay.x264-SHORTBREHD/.nomedia new path:/mnt/DroboFS/Shares/Drobo/video/.nomedia.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.50.51.52.53.54.55.56.57.58.59.60.61.62.63.64.65.66.67.68.69.70.71.72.73.74.75.76.77.78.79.80.81.82.83.84.85.86.1 unique?:False
2012-05-26 09:59:35,702::ERROR::[misc:794] Failed moving /mnt/DroboFS/Shares/Drobo/video/./Downton.Abbey.S01E03.720p.BluRay.x264-SHORTBREHD/.nomedia to /mnt/DroboFS/Shares/Drobo/video/.nomedia.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.50.51.52.53.54.55.56.57.58.59.60.61.62.63.64.65.66.67.68.69.70.71.72.73.74.75.76.77.78.79.80.81.82.83.84.85.86.1
2012-05-26 09:59:35,704::INFO::[misc:795] Traceback: 
Traceback (most recent call last):
  File "/mnt/DroboFS/Shares/DroboApps/sabnzbd/sabnzbd/misc.py", line 791, in move_to_path
    shutil.copyfile(path, new_path)
  File "/mnt/DroboFS/Shares/DroboApps/python2/lib/python2.7/shutil.py", line 82, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 36] File name too long: '/mnt/DroboFS/Shares/Drobo/video/.nomedia.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.50.51.52.53.54.55.56.57.58.59.60.61.62.63.64.65.66.67.68.69.70.71.72.73.74.75.76.77.78.79.80.81.82.83.84.85.86.1'

Re: [0.7.0B7]Error renaming .nomedia

Posted: May 26th, 2012, 2:20 pm
by shypike
Use Beta8 and forget about this feature.

Re: [0.7.0B7]Error renaming .nomedia

Posted: June 9th, 2012, 7:13 pm
by Spaldo
Hello, I am using RC2 and getting .nomedia files in my directories :(

Re: [0.7.0B7]Error renaming .nomedia

Posted: June 10th, 2012, 4:34 am
by shypike
You still have to disable the feature in Config->Special.

Re: [0.7.0B7]Error renaming .nomedia

Posted: June 10th, 2012, 4:53 am
by Spaldo
shypike wrote:You still have to disable the feature in Config->Special.
Sorry, I must be blind... Which option do I turn off?

Re: [0.7.0B7]Error renaming .nomedia

Posted: June 10th, 2012, 5:33 am
by shypike
Config=>Special, almost at the bottom: "nomedia_marker" field, remove the text in the box.
Then click Save.

Re: [0.7.0B7]Error renaming .nomedia

Posted: June 10th, 2012, 6:03 am
by Spaldo
shypike wrote:Config=>Special, almost at the bottom: "nomedia_marker" field, remove the text in the box.
Then click Save.
Firstly, thanks for the quick reply.

Unfortunately that box was already blank ???

Re: [0.7.0B7]Error renaming .nomedia

Posted: June 10th, 2012, 7:35 am
by shypike
Then no new marker files should be created.
Existing ones you'll have to remove manually.