Kodi Community Forum
Bug odd rename behaviour - Printable Version

Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Supplementary Tools for Kodi (https://forum.kodi.tv/forumdisplay.php?fid=116)
+---- Forum: TinyMediaManager (https://forum.kodi.tv/forumdisplay.php?fid=204)
---- Thread: Bug odd rename behaviour (/showthread.php?tid=227614)



odd rename behaviour - slug_ - 2015-05-22

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/[email protected] 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



RE: odd rename behaviour - myron - 2015-05-22

can you submit us the complete log?


RE: odd rename behaviour - slug_ - 2015-05-22

http://jpst.it/z2cf


RE: odd rename behaviour - myron - 2015-05-22

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...


RE: odd rename behaviour - akya - 2015-05-24

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.


RE: odd rename behaviour - mlaggner - 2015-05-25

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


RE: odd rename behaviour - slug_ - 2015-05-26

I've updated & enabled debug. I'll post back if / when it happens again.


RE: odd rename behaviour - myron - 2015-05-26

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...


RE: odd rename behaviour - akya - 2015-05-28

(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.


RE: odd rename behaviour - slug_ - 2015-06-03

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/


RE: odd rename behaviour - myron - 2015-06-03

Yes, this is already fixed in upcoming 2.6.8 (which is currently planned for weekend)


RE: odd rename behaviour - slug_ - 2015-06-04

Cool, thanks!


This forum uses Lukasz Tkacz MyBB addons.