mcsinyx / comp Goto Github PK
View Code? Open in Web Editor NEWMigrated to https://git.sr.ht/~cnx/comp
Home Page: https://pypi.org/project/comp/
License: GNU Affero General Public License v3.0
Migrated to https://git.sr.ht/~cnx/comp
Home Page: https://pypi.org/project/comp/
License: GNU Affero General Public License v3.0
Currently the playlist functions (go backward/forward, history, shuffle, repeat, etc.) are implemented in Python by me, which is slow and buggy (-er than mpv's, which is written in C and well tested). The mpv playlist is quite easy to use by triggering the MPV.playlist_*
functions, but there are a few remaining problems:
loop-file
and loop-list
for repeating but shuffling can only be done by playlist-shuffle
function which well, shuffle the list up, so when we switch to another mode, I guess rewrite the whole list is a must../setup.py install
installs in eggs so manual page isn't in MANPATH
, and wait,
Traceback (most recent call last):
File "/home/cnx/.local/bin/comp", line 4, in <module>
__import__('pkg_resources').run_script('comp==0.3.6', 'comp')
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 739, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1486, in run_script
raise ResolutionError("No script named %r" % script_name)
pkg_resources.ResolutionError: No script named 'comp'
--old-and-unmanageable
flag fixes this but, eh, it's old and unmanageable, and it prevents dependencies installation.
pip3 install comp
works well though.
This project started as (and still is) a fork of jaseg/python-mpv but since I need to do some pull requests on the original repo, I imported it here.
@alekcacko, @NateTheGreatt, @dark-yux, @joshuamabina, @SirBoonami, @Weznon, @CyanJDroid, @imitis, @rigrassm, @Bfgeshka and @McFkCoding, thank you for your encouragement. The current stable branch is testing
(how irony) and I wish to have you guys checking my program again ๐โโ๏ธ
Edit: as of 2017-05-22, version 0.2.x is merged to master
.
The bare exceptions should be fixed https://travis-ci.org/McSinyx/comp/jobs/369650709#L501
https://realpython.com/the-most-diabolical-python-antipattern
trying the new version of comp but getting this error
comp 'https://www.youtube.com/playlist?list=PLYosk6VjN4iYItFGfacO9HBRdeUcOP7OA'
Traceback (most recent call last):
File "/media/Suiton/Public/dotjutsu/virtualenv/.virtualenv/comp/bin/comp", line 346, in <module>
mpv_args = dict(config['mpv'])
File "/usr/lib64/python3.6/configparser.py", line 959, in __getitem__
raise KeyError(key)
KeyError: 'mpv
Python 3.6.4
pip 9.0.1
libmpv can't be installed on MacOS by homebrew
can you add custom arguments support?
i would like to use task-spooler and other mpv flags with comp
FYI: task-spooler (tsp) can queue up videos/commands
normally i would use this command from the shell:
tsp mpv --ontop --no-border --force-window --autofit=500x280 --geometry=-15-50 [URL]
From now, comp entries will have this structure:
[{'filename': 'https://foo.bar/baz',
'title': 'foobar title',
'duration': '00:00:00',
'error': False,
'playing': False,
'selected': False},
{'filename': '/foo/bar/baz',
'title': 'foobaz title',
'duration': '00:00:00',
'error': False,
'playing': False,
'selected': False}]
I want to write a function that recognize then open these kinds of filenames and return the above data:
json.load
)Not sure if this is possible though.
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.