mwheelerjr / mptvseries

Automatically exported from code.google.com/p/mptvseries
0 stars 0 forks source link

Hash check on files to allow easy rename/move on filenames #332

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In MovingPictures they use the following code:

http://code.google.com/p/moving-
pictures/source/browse/trunk/MovingPictures/LocalMediaManagement/Utility.cs
#587

Which generates hashes on all the media files, so that when a file is 
detected by the importer, it can recognize an existing database entry and 
only needs to make a minor database update on filename (if file gets 
renamed), or remove record if file was removed.

This will allow an easy rename+move from "D:\TV Shows\Lost.6x01.HDTV.avi" 
into "D:\TV Shows\Lost\Lost - Season 6\Lost S06E01.avi" without double 
database entries (old one showing N/A for filesize), or the need to remove 
& re-add via scraper.

Original issue reported on code.google.com by RoChess....@gmail.com on 5 Feb 2010 at 3:26

GoogleCodeExporter commented 9 years ago
This issue should have a higher priority. Everytime a need to remove a file, I 
have to edit the database manually. If I delete the episode, the scrapper just 
ignore it. If I rename the file again, two entries are added two the database. 
If I remove the entrie using the TV-Series configuration menu, it deletes both 
entries. The right and the wrong one.

Original comment by xikinhu@gmail.com on 3 Sep 2010 at 12:50

GoogleCodeExporter commented 9 years ago
Probably because you have keep_references enabled...more a bug in that.

Original comment by damien.haynes@gmail.com on 3 Sep 2010 at 12:59

GoogleCodeExporter commented 9 years ago
I support this issue. My problem is that all my series is downloaded to a 
shared Series folder, and then I sort them out and rename them when I get the 
time. The problem is that when i Rename or move the files, the original one is 
deleted from the database, and the moved/renamed file gets added. The problem 
with this is that it then looses the "Watched" flag. If I had only 10 series, 
it wouldn't be a problem, but when I in a overall week watch over 30 series, It 
becomes hard to go back and mark every single episode as Watched again (and I 
don't always remember if I have seen an episode or not)

Original comment by danielf1...@gmail.com on 27 Oct 2010 at 4:58