Commit Graph

121 Commits

Author SHA1 Message Date
KevinMidboe 2977ab53b2 Allow a instuffient name to be thrown. Also, pop was not the correct way to remove elements from the list, del on a index is now used. 2019-02-02 00:33:32 +01:00
KevinMidboe 0ff205615f This is not js is it? 2019-02-02 00:28:56 +01:00
KevinMidboe 028301c4c4 Added more knowledge 🧠 2018-10-18 22:14:08 +02:00
KevinMidboe 3031353cc3 Merge pull request #8 from KevinMidboe/CLI
Prompt for user input has been moved out to a funtion. Reflecting cha…
2018-10-18 22:11:07 +02:00
KevinMidboe bac145c6a1 Prompt for user input has been moved out to a funtion. Reflecting changes of exception name to InsufficientNameError. 2018-10-18 22:09:47 +02:00
KevinMidboe 3833b59732 Merge pull request #5 from KevinMidboe/CLI
Cli
2018-10-18 20:54:22 +02:00
KevinMidboe c3bb6c6469 If the name is not sufficient for a valid guess a insuffienet name error is thrown which is not handled correctly for both files and folders, then returned to the user to try move it by changing input name. 2018-10-18 20:48:59 +02:00
KevinMidboe 8b3d083938 Handles input from argv as path. 2018-10-18 20:27:03 +02:00
KevinMidboe b1bfdc195b Merge pull request #4 from KevinMidboe/CLI
Added exceptions file.
2018-10-17 23:35:49 +02:00
KevinMidboe 2d4f2b003b Added exceptions file. 2018-10-17 23:34:49 +02:00
KevinMidboe c8837eed8e Merge pull request #3 from KevinMidboe/CLI
Cli implimintation
2018-10-17 23:29:53 +02:00
KevinMidboe 37a0c6f62b Will iterate over all files until all have a files have sufficient info. 2018-10-17 23:29:09 +02:00
KevinMidboe 7e7eebd462 Removed main function from core. 2018-10-17 23:00:06 +02:00
KevinMidboe 50e6e4a259 Insufficient exception is thrown when not enough info is needed to move file to correct location. All insufficient items are returned along with the found videos. The wanted path we want to move the file is no longer class vairable, but gets the string by function. 2018-10-17 22:58:22 +02:00
KevinMidboe 86d17c5e22 Recatored the cli program. 2018-10-17 22:51:56 +02:00
KevinMidboe 5a6486189e Merged to updated logger name. 2018-10-17 19:59:43 +02:00
KevinMidboe dd1f49d53b When path does not exist the user is notified and the path is added to errored_paths. Added info logs for if path is a file or directory. 2018-10-17 19:55:38 +02:00
KevinMidboe 9639b56251 Readded streamhandler to logger. 2018-10-17 19:46:46 +02:00
KevinMidboe 93fcfa1ec5 Merge pull request #2 from KevinMidboe/refactor
Refactor
2018-10-16 23:11:45 +02:00
KevinMidboe 6d67ce1214 Cli roadmap 2018-10-16 23:07:05 +02:00
KevinMidboe aeacd8a5b6 Started cli for seasonedparser 2018-10-16 23:06:45 +02:00
KevinMidboe 66f7ea3e24 Because we read subtitles from mkv containers a check for if subtitle file exists was added so not to try move a sub file within a mkv container. v1-beta 2018-09-23 22:38:26 +02:00
KevinMidboe 03902eeecb Created the big move home function which will create the parent folders and move all videos and subtitles. 2018-09-23 21:36:03 +02:00
KevinMidboe b40f0f91ef Added subtitle_path function which finds the dirpath based on video sibling and subtitle name. 2018-09-23 21:26:57 +02:00
KevinMidboe 4e055403d1 Imported re (regex lib) and fixed pathing issue when reading subtitle 2018-09-23 21:00:14 +02:00
KevinMidboe 55f435109f Added langdetect for last resort when trying to find the subtitle language. It reads the first 1000 lines of the file and guesses the locale of the text. 2018-09-23 20:37:26 +02:00
KevinMidboe 11f5c16336 Added moviebase and showbase that represents the absolute base for the movie and show folders on disk. 2018-09-23 20:13:30 +02:00
KevinMidboe 94599fd6ee Fixed merge conflict 2018-09-23 20:10:47 +02:00
KevinMidboe abb9ddbf09 Removed unused print and fixed show path and sanity check. 2018-09-23 18:01:55 +02:00
KevinMidboe f92a3fc2a2 Added custom logger instance to core and import in video. 2018-09-23 18:00:24 +02:00
KevinMidboe 81a53465e7 If a movie or series does not have sufficient info it is logged before returning value. 2018-09-23 17:42:42 +02:00
KevinMidboe bfab59d49c Methods should not have been tagged with classmethods and now the basename of class name is attributed to the final home path. 2018-09-23 17:26:43 +02:00
KevinMidboe a106a35d42 Moved checks for sufficient info in order to move series or movie to the class. Homelocation in now a class function for each movie and series class. 2018-09-23 16:29:41 +02:00
KevinMidboe 379d789adc Disbled hashing of filenames for now 2018-09-23 16:28:44 +02:00
KevinMidboe 8fab27a95f And the other conflict 2018-09-20 23:28:47 +02:00
KevinMidboe 9e80cc4d97 Mixed merge conflict. 2018-09-20 23:27:57 +02:00
KevinMidboe 4b09d6cd2c Titlecase the homepath and try except creating hash for filename. 2018-09-20 23:25:47 +02:00
KevinMidboe 916ce45fec If any error return false when picking for girlscouts 2018-09-20 23:24:17 +02:00
KevinMidboe 1fc62479be Conflict resolved by re-adding release_group 2018-09-16 23:46:39 +02:00
KevinMidboe 16afdb4cd8 Video has a new attribute home that is the optimal parent folder for this element. 2018-09-16 23:38:19 +02:00
KevinMidboe 3e2faadc2f Video gets a new parameter embeded_subtitles to represent the subtitle files found in the mkv container. 2018-09-16 23:26:06 +02:00
KevinMidboe 1ff34630ac Renamed subtitle_languages to subtitles to save the subtitles and not only the subtitle languages available. 2018-09-16 23:05:09 +02:00
KevinMidboe 2108f2f25a Removed directory path from function call. 2018-09-16 23:01:49 +02:00
KevinMidboe 96ca355c50 Fixed naming error with civilian and girl. Also prints total found videos. 2018-09-16 22:26:07 +02:00
KevinMidboe 32263e3aaf Merge branch 'refactor' of github.com:KevinMidboe/seasonedParser into refactor 2018-09-16 21:48:30 +02:00
KevinMidboe 5ed1019a46 Redid hash function. Hashids only supports ints and our hash text is string. Moved over to hashlib and md5 function. 2018-09-16 21:47:15 +02:00
KevinMidboe 5916843e95 Videos are picked for girl scouts and printed if become scout or remain civilian. 2018-09-16 21:45:23 +02:00
KevinMidboe ba5011d3a4 Updated progressbars to have more info and changed from procent to absolut value when searching for videos. 2018-09-16 18:19:25 +02:00
KevinMidboe d9880c77fb Sets hash value based on if movie or episode instance. 2018-09-16 17:27:38 +02:00
KevinMidboe 2541a21715 Changed class var from name_hash to just be hash. 2018-09-16 17:26:58 +02:00