louist87 / Scrappy

Python module to rename media collections based on scrapes from thetvdb.com. CLI and GUI tools, too!
27 stars 0 forks source link

Passing subdirectory moves files to shallowest subdir #8

Closed louist87 closed 11 years ago

louist87 commented 11 years ago
xbmc@MediaServer:/media/TV$ scrappy The\ X-Files/Season\ 05/ --auto

result:

xbmc@MediaServer:/media/TV$ ls
30 Rock                 Game of Thrones                    Planet Earth [2006]    The Tudors                                The.X-Files.S05.E05.The.Post-Modern.Prometheus.avi  The.X-Files.S05.E15.Travelers.avi
Aqua Unit Patrol Squad  Homeland                           Seinfeld               The Unit                                  The.X-Files.S05.E06.Christmas.Carol.(1).avi         The.X-Files.S05.E16.Mind's.Eye.avi
Archer                  House MD                           South Park             The Walking Dead                          The.X-Files.S05.E07.Emily.(2).avi                   The.X-Files.S05.E17.All.Souls.avi
Arrested Development    How I Met your Mother              Spongebob Squarepants  The Whitest Kids U Know                   The.X-Files.S05.E08.Kitsunegari.avi                 The.X-Files.S05.E18.The.Pine.Bluff.Variant.avi
Battlestar Galactica    IT Crowd                           Survivorman            The Wire                                  The.X-Files.S05.E09.Schizogeny.avi                  The.X-Files.S05.E19.Folie.à.Deux.avi
Burn Notice             Its Always Sunny in Philadelphia   The Big Bang Theory    The X-Files                               The.X-Files.S05.E10.Chinga.avi                      The.X-Files.S05.E20.The.End.avi
Californication         It's Always Sunny In Philadelphia  The Big Bang THeory    The.X-Files.S05.E01.Redux.(2).avi         The.X-Files.S05.E11.Kill.Switch.avi                 True Blood
Chappelle's Show        Kaamelott                          The Inbetweeners       The.X-Files.S05.E02.Redux.II.(3).avi      The.X-Files.S05.E12.Bad.Blood.avi
Coupling (UK)           Mad Men                            The Office             The.X-Files.S05.E03.Unusual.Suspects.avi  The.X-Files.S05.E13.Patient.X.(1).avi
Da Ali G Show           New Girl                           The Pacific            The.X-Files.S05.E04.Detour.avi            The.X-Files.S05.E14.The.Red.and.the.Black.(2).avi
louist87 commented 11 years ago

Fixed.

Problem was in Scrape.rename_files. The newname variable was being renamed without the preceding path.

Closing and merging.