Bug odd rename behaviour
#1
Hi,

Firstly thanks for a great program.

I have seen multiple times my movies being renamed to ";" or simply "720P"

I use a script that calls
Code:
"./tinyMediaManagerCMD.sh  -update -scrapeNew -renameNew"  to parse the files.


examples:
> zgrep "Films/;" tmm*
Code:
tmm.2015-05-17.0.log.gz:2015-05-17 20:17:59,355 INFO  [tmmpool-rename-thread-1] org.tinymediamanager.core.Utils:542 - Successfully moved folder /mnt/data/Films/Focus.2015.1080p.BluRay.x264-SPARKS/;) to /mnt/data/Films/;
tmm.2015-05-17.0.log.gz:2015-05-17 20:17:59,365 INFO  [tmmpool-rename-thread-1] o.t.core.movie.MovieRenamer:293 - rename file /mnt/data/Films/;/SKRAPS-462x.yaRulB.p0801.5102.sucoF.mkv
tmm.2015-05-17.0.log.gz:2015-05-17 20:17:59,366 INFO  [tmmpool-rename-thread-1] org.tinymediamanager.core.Utils:616 - Successfully moved file from /mnt/data/Films/;/SKRAPS-462x.yaRulB.p0801.5102.sucoF.mkv to /mnt/data/Films/;/;.1080p.mkv
tmm.2015-05-17.0.log.gz:2015-05-17 20:17:59,368 INFO  [tmmpool-rename-thread-1] org.tinymediamanager.core.Utils:616 - Successfully moved file from /mnt/data/Films/;/SKRAPS-462x.yaRulB.p0801.5102.sucoF.srt to /mnt/data/Films/;/;.1080p.srt

----------
> zgrep "720pAVI" tmm*
Code:
tmm.2015-05-20.0.log.gz:2015-05-20 05:59:04,704 INFO  [tmmpool-rename-thread-1] org.tinymediamanager.core.Utils:542 - Successfully moved folder /mnt/data/Films/Infini.2015.720p.WEB-DL.XviD.AC3-RARBG/720p@AVI to /mnt/data/Films/720pAVI
tmm.2015-05-20.0.log.gz:2015-05-20 05:59:04,714 INFO  [tmmpool-rename-thread-1] o.t.core.movie.MovieRenamer:293 - rename file /mnt/data/Films/720pAVI/GBRAR-3CA.DivX.LD-BEW.p027.5102.inifnI.avi
tmm.2015-05-20.0.log.gz:2015-05-20 05:59:04,715 INFO  [tmmpool-rename-thread-1] org.tinymediamanager.core.Utils:616 - Successfully moved file from /mnt/data/Films/720pAVI/GBRAR-3CA.DivX.LD-BEW.p027.5102.inifnI.avi to /mnt/data/Films/720pAVI/720pAVI.720p.avi
#2
can you submit us the complete log?
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
#3
http://jpst.it/z2cf
#4
ok, don't see anything Smile

please:
open the GUI Settings and set the Logger to DEBUG.
Try to reproduce the issue, and send us the logs


Log is from last week, with old 2.6.6 version
Dunno if you already updated to 2.6.7, but there were many changes regarding renamer...
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
#5
Hi, I noticed an odd behaviour while renaming too. My .actors folder or sometimes other artwork files remain in the original movie folder. And .deletedbyTMM folder appears in the source folder every time I rename a movie.

http://www.xbmclogs.com/pnvqxq046

Check the end of that log.
~Web and graphic designer... Linux enthusiast... Python Fan... A Gooner~
[AMD A10-7850K 3.7 Ghz, Radeon R7]
[Fedora 27] | [Kodi - 17.6 / Skin - Grid]

Image
#6
I see - but these logs show two different problems

@slug_: your movie ( /mnt/data/Films/Focus.2015.1080p.BluRay.x264-SPARKS/; ) had some strange filenames? as far as I could see tmm extracted ";" as the movie name. We may add some extra checks, that such a movie does not get renamed
btw you use 2.6.6 - with 2.6.7 there were several improvements in the renamer

@akya: your problem is due to our refactoring. Your folder template ($T) is not unique (multiple can have the same title), thus the movie is being "downgraded" at rename to a "multi movie directory - movie" and with multi movie dirs there are no extras possible (like .actors).
Imagine you have Batman (1989 and 1966), after rename both movies are inside the folder Batman; now how should Kodi know, for which movie the .actors dir is?

to stay within a fully supported dir, you need either the title/sorttitle + year/imdbId in the folder for being unique enough to support everything.

hth
Manuel
tinyMediaManager - THE media manager of your choice - available for Windows, macOS and Linux
Help us translate tinyMediaManager at Weblate | Translations at 66%
Found a bug or want to submit a feature request? Contact us at GitLab
#7
I've updated & enabled debug. I'll post back if / when it happens again.
#8
ok, found a little issue with our naming detection;
basically when to take the foldername or filename.
So your movie in the ";" directory should now be detected correctly named...
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
#9
(2015-05-25, 16:36)mlaggner Wrote: @akya: your problem is due to our refactoring. Your folder template ($T) is not unique (multiple can have the same title), thus the movie is being "downgraded" at rename to a "multi movie directory - movie" and with multi movie dirs there are no extras possible (like .actors).
Imagine you have Batman (1989 and 1966), after rename both movies are inside the folder Batman; now how should Kodi know, for which movie the .actors dir is?

to stay within a fully supported dir, you need either the title/sorttitle + year/imdbId in the folder for being unique enough to support everything.

hth
Manuel

Thanks for clarifying Smile I think it's about time that I added movie year to the title.
~Web and graphic designer... Linux enthusiast... Python Fan... A Gooner~
[AMD A10-7850K 3.7 Ghz, Radeon R7]
[Fedora 27] | [Kodi - 17.6 / Skin - Grid]

Image
#10
OK it's happened again..

It looks like some Movies I get are in a subfolder and that's whats going wrong

Looking at Survivor.2015.1080p:

http://paste.ubuntu.com/11545444/
#11
Yes, this is already fixed in upcoming 2.6.8 (which is currently planned for weekend)
tinyMediaManager - THE media manager of your choice :)
Wanna help translate TMM ?
Image
#12
Cool, thanks!

Logout Mark Read Team Forum Stats Members Help
odd rename behaviour0