ichait / moviemon Goto Github PK
View Code? Open in Web Editor NEW:movie_camera: Everything about your movies within the command line.
Home Page: https://ichait.github.io/moviemon/
License: MIT License
:movie_camera: Everything about your movies within the command line.
Home Page: https://ichait.github.io/moviemon/
License: MIT License
Traceback (most recent call last):
File "/usr/local/bin/moviemon", line 9, in
load_entry_point('moviemon==1.0.11', 'console_scripts', 'moviemon')()
File "/usr/local/lib/python2.7/dist-packages/moviemon/moviemon.py", line 61, in main
util(args)
File "/usr/local/lib/python2.7/dist-packages/moviemon/moviemon.py", line 77, in util
scan_dir(docopt_args["PATH"], dir_json)
File "/usr/local/lib/python2.7/dist-packages/moviemon/moviemon.py", line 281, in scan_dir
data = get_movie_info(name)
File "/usr/local/lib/python2.7/dist-packages/moviemon/moviemon.py", line 302, in get_movie_info
return omdb(movie_info['title'], None)
KeyError: 'title'
Moviemon doesn't handle well broken symlinks.
File "/home/servo/.local/bin/moviemon", line 9, in <module>
load_entry_point('moviemon==1.0.11', 'console_scripts', 'moviemon')()
File "/home/servo/.local/lib/python3.5/site-packages/moviemon/moviemon.py", line 61, in main
util(args)
File "/home/servo/.local/lib/python3.5/site-packages/moviemon/moviemon.py", line 77, in util
scan_dir(docopt_args["PATH"], dir_json)
File "/home/servo/.local/lib/python3.5/site-packages/moviemon/moviemon.py", line 273, in scan_dir
if os.path.getsize(path) > (25*1024*1024):
File "/usr/lib/python3.5/genericpath.py", line 50, in getsize
return os.stat(filename).st_size
FileNotFoundError: [Errno 2] No such file or directory: 'broken_symlink'
Dear Chaitanya,
Could you be so kind to generate .exe
for the rest of us who use Windows only?
I’m told that py2exe might help you to achieve that.
I had this error when I tried to install with pip install moviemon
:
$ pip install moviemon (gh-pages)
Collecting moviemon
Using cached moviemon-1.0.11.tar.gz
Collecting guessit<2 (from moviemon)
Using cached guessit-1.0.3.tar.gz
Collecting terminaltables (from moviemon)
Using cached terminaltables-2.1.0.tar.gz
Collecting docopt (from moviemon)
Using cached docopt-0.6.2.tar.gz
Collecting tqdm (from moviemon)
Using cached tqdm-3.8.0-py2.py3-none-any.whl
Collecting colorama (from moviemon)
Using cached colorama-0.3.6-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): babelfish>=0.5.5 in /Library/Python/2.7/site-packages (from guessit<2->moviemon)
Collecting stevedore>=0.14 (from guessit<2->moviemon)
Using cached stevedore-1.10.0-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): requests in /Library/Python/2.7/site-packages (from guessit<2->moviemon)
Collecting python-dateutil>=2.1 (from guessit<2->moviemon)
Using cached python_dateutil-2.4.2-py2.py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): pbr>=1.6 in /Library/Python/2.7/site-packages (from stevedore>=0.14->guessit<2->moviemon)
Requirement already satisfied (use --upgrade to upgrade): argparse in /Library/Python/2.7/site-packages (from stevedore>=0.14->guessit<2->moviemon)
Collecting six>=1.9.0 (from stevedore>=0.14->guessit<2->moviemon)
Using cached six-1.10.0-py2.py3-none-any.whl
Installing collected packages: six, stevedore, python-dateutil, guessit, terminaltables, docopt, tqdm, colorama, moviemon
Found existing installation: six 1.4.1
DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling six-1.4.1:
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 317, in run
prefix=options.prefix_path,
File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 725, in install
requirement.uninstall(auto_confirm=True)
File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 752, in uninstall
paths_to_remove.remove(auto_confirm)
File "/Library/Python/2.7/site-packages/pip/req/req_uninstall.py", line 115, in remove
renames(path, new_path)
File "/Library/Python/2.7/site-packages/pip/utils/__init__.py", line 266, in renames
shutil.move(old, new)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
copy2(src, real_dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
copystat(src, dst)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/var/folders/6n/b5gn0dsj1bq5ltjngyr33rk40000gn/T/pip-_r9Odo-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/six-1.4.1-py2.7.egg-info'
basic install on mac yosemite and ended with this:
$ moviemon /Users/roboo/Movies/
Traceback (most recent call last):
File "/usr/local/bin/moviemon", line 9, in <module>
load_entry_point('moviemon==1.0.11', 'console_scripts', 'moviemon')()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 357, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2394, in load_entry_point
return ep.load()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2108, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/Library/Python/2.7/site-packages/moviemon/__init__.py", line 1, in <module>
from .moviemon import main
File "/Library/Python/2.7/site-packages/moviemon/moviemon.py", line 32, in <module>
from guessit import guess_file_info
File "/Library/Python/2.7/site-packages/guessit/__init__.py", line 99, in <module>
from guessit.plugins import transformers
File "/Library/Python/2.7/site-packages/guessit/plugins/transformers.py", line 222, in <module>
reload()
File "/Library/Python/2.7/site-packages/guessit/plugins/transformers.py", line 220, in reload
reload_options(all_transformers())
File "/Library/Python/2.7/site-packages/guessit/plugins/transformers.py", line 179, in all_transformers
return _extensions.objects()
File "/Library/Python/2.7/site-packages/guessit/plugins/transformers.py", line 111, in objects
return self.map(self._get_obj)
File "/Library/Python/2.7/site-packages/stevedore/extension.py", line 252, in map
raise NoMatches('No %s extensions found' % self.namespace)
stevedore.exception.NoMatches: No guessit.transformer extensions found
G:\Entertainment>moviemon G:\Entertainment\Movies
Indexing all movies inside G:\Entertainment\Movies
283it [00:00, 3557.25it/s]
5%|4 | 13.0/276 [00:07<02:12, 1.98B/s]
Traceback (most recent call last):
File "c:\anaconda3\lib\runpy.py", line 184, in _run_module_as_main
"__main__", mod_spec)
File "c:\anaconda3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Anaconda3\Scripts\moviemon.exe\__main__.py", line 9, in <module>
File "c:\anaconda3\lib\site-packages\moviemon\moviemon.py", line 61, in main
util(args)
File "c:\anaconda3\lib\site-packages\moviemon\moviemon.py", line 77, in util
scan_dir(docopt_args["PATH"], dir_json)
File "c:\anaconda3\lib\site-packages\moviemon\moviemon.py", line 281, in scan_dir
data = get_movie_info(name)
File "c:\anaconda3\lib\site-packages\moviemon\moviemon.py", line 300, in get_movie_info
return omdb(movie_info['title'], movie_info['year'])
File "c:\anaconda3\lib\site-packages\moviemon\moviemon.py", line 318, in omdb
return json.loads(requests.get(url).text)
File "c:\anaconda3\lib\json\__init__.py", line 319, in loads
return _default_decoder.decode(s)
File "c:\anaconda3\lib\json\decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "c:\anaconda3\lib\json\decoder.py", line 357, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Rerunning the command goes okay but fails in the same manner but at a different percentage. I'll try running from source and report.
Moviemon should provide a way to search for information about an individual movie on my machine.
Example -
When I run -
$ moviemon <movie-name>
It should give me all the relevant information about the movie that I passed in as argument.
$ moviemon <movie-name> -i
Gives IMDB rating for this particular movie only.
or
$ moviemon <movie-name> -r
Gives the runtime for this particular movie only
We can do the same for all switches.
Better error handling is required when a tag is not found.
Movies $ moviemon .
Indexing all movies inside .
58%|█████████████████████████████████████████████████████████████████████████████████████████████████▊ | 316/543 [01:53<01:46, 2.14B/s]
Traceback (most recent call last):
File "/usr/local/bin/moviemon", line 9, in <module>
load_entry_point('moviemon==1.0.11', 'console_scripts', 'moviemon')()
File "/usr/local/lib/python2.7/dist-packages/moviemon/moviemon.py", line 61, in main
util(args)
File "/usr/local/lib/python2.7/dist-packages/moviemon/moviemon.py", line 77, in util
scan_dir(docopt_args["PATH"], dir_json)
File "/usr/local/lib/python2.7/dist-packages/moviemon/moviemon.py", line 281, in scan_dir
data = get_movie_info(name)
File "/usr/local/lib/python2.7/dist-packages/moviemon/moviemon.py", line 302, in get_movie_info
return omdb(movie_info['title'], None)
KeyError: 'title'
Wouldn't it be better to set a minimum version number for guessit ( or a specific version)?
moviemon PATH failed with error when guessit version was 0.6.2.
Problem was fixed when it was upgraded to 1.0.3.
It would be great if you could define the paths to your 'watched' and 'unwatched' folders independently, and then use a flag if you wish to ignore the content of the watched folder.
$ moviemon
Traceback (most recent call last):
File "/home/pawamoy/.local/bin/moviemon", line 5, in <module>
from moviemon import main
File "/home/pawamoy/.local/pipx/venvs/moviemon/lib/python3.7/site-packages/moviemon/__init__.py", line 1, in <module>
from .moviemon import main
File "/home/pawamoy/.local/pipx/venvs/moviemon/lib/python3.7/site-packages/moviemon/moviemon.py", line 32, in <module>
from guessit import guess_file_info
File "/home/pawamoy/.local/pipx/venvs/moviemon/lib/python3.7/site-packages/guessit/__init__.py", line 99, in <module>
from guessit.plugins import transformers
File "/home/pawamoy/.local/pipx/venvs/moviemon/lib/python3.7/site-packages/guessit/plugins/transformers.py", line 222, in <module>
reload()
File "/home/pawamoy/.local/pipx/venvs/moviemon/lib/python3.7/site-packages/guessit/plugins/transformers.py", line 220, in reload
reload_options(all_transformers())
File "/home/pawamoy/.local/pipx/venvs/moviemon/lib/python3.7/site-packages/guessit/plugins/transformers.py", line 179, in all_transformers
return _extensions.objects()
File "/home/pawamoy/.local/pipx/venvs/moviemon/lib/python3.7/site-packages/guessit/plugins/transformers.py", line 111, in objects
return self.map(self._get_obj)
File "/home/pawamoy/.local/pipx/venvs/moviemon/lib/python3.7/site-packages/stevedore/extension.py", line 261, in map
raise NoMatches('No %s extensions found' % self.namespace)
stevedore.exception.NoMatches: No guessit.transformer extensions found
Maybe a Python version compatibility issue? Using Python 3.7.4 here. Installed with pipx
(the new pipsi
).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.