vmassuchetto / beets-ydl Goto Github PK
View Code? Open in Web Editor NEWDownload audio from youtube-dl sources and import into beets
Download audio from youtube-dl sources and import into beets
When beets-ydl knowns that the user is leaving some cache that will never be deleted, show a warning about it.
The following error occurs when trying to use ydl with the following config file
[ydl] Calling youtube-dl
Traceback (most recent call last):
File "/usr/bin/beet", line 11, in <module>
load_entry_point('beets==1.4.9', 'console_scripts', 'beet')()
File "/usr/lib/python3.8/site-packages/beets/ui/__init__.py", line 1266, in main
_raw_main(args)
File "/usr/lib/python3.8/site-packages/beets/ui/__init__.py", line 1253, in _raw_main
subcommand.func(lib, suboptions, subargs)
File "/usr/lib/python3.8/site-packages/beetsplug/ydl.py", line 101, in ydl_func
outer_class.youtubedl(lib, opts, arg)
File "/usr/lib/python3.8/site-packages/beetsplug/ydl.py", line 153, in youtubedl
y = YoutubeDL(youtubedl_config)
File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 353, in __init__
self._screen_file = [sys.stdout, sys.stderr][params.get('logtostderr', False)]
TypeError: get() takes from 1 to 2 positional arguments but 3 were given
The config file has this
ydl:
download: True
split_files: True
import: True
youtubedl_options:
cookiefile: "~/.cookies.txt"
Hello,
-> installed python3 -m pip package OK
->beet ydl https://www.youtube.com/watch?v=OoMmK1q6pyw
zsh$ beet ydl "https://www.youtube.com/watch?v=OoMmK1q6pyw&t=18s"
Traceback (most recent call last):
File "/usr/local/bin/beet", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/beets/ui/init.py", line 1266, in main
_raw_main(args)
File "/usr/local/lib/python3.7/site-packages/beets/ui/init.py", line 1253, in _raw_main
subcommand.func(lib, suboptions, subargs)
File "/usr/local/lib/python3.7/site-packages/beetsplug/ydl.py", line 101, in ydl_func
outer_class.youtubedl(lib, opts, arg)
File "/usr/local/lib/python3.7/site-packages/beetsplug/ydl.py", line 153, in youtubedl
y = YoutubeDL(youtubedl_config)
File "/usr/local/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line 353, in init
self._screen_file = [sys.stdout, sys.stderr][params.get('logtostderr', False)]
TypeError: get() takes from 1 to 2 positional arguments but 3 were given
Wha I could do?
Thank you
I'm trying to use beets-ydl for tagging Bandcamp albums, but keep getting an error:
$ beet ydl "https://androgynousbanana.bandcamp.com/album/year-of-the-flagon-2011-2014"
Traceback (most recent call last):
File "/usr/local/bin/beet", line 10, in
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/beets/ui/init.py", line 1266, in main
_raw_main(args)
File "/usr/local/lib/python3.7/site-packages/beets/ui/init.py", line 1253, in _raw_main
subcommand.func(lib, suboptions, subargs)
File "/usr/local/lib/python3.7/site-packages/beetsplug/ydl.py", line 101, in ydl_func
outer_class.youtubedl(lib, opts, arg)
File "/usr/local/lib/python3.7/site-packages/beetsplug/ydl.py", line 176, in youtubedl
items = [x for x in lib.items('ydl:' + entry['id'])] +
KeyError: 'id'
OS: MacOS 10.13.6
beets version 1.4.8
Python version 3.7.2
plugins: bandcamp, edit, fetchart, fromfilename, ftintitle, hook, importadded, ydl
plugins: edit ftintitle fromfilename importadded hook bandcamp fetchart ydl
import:
copy: no # Copy the file to our directory when importing?
incremental: yes # Skip directories we already imported?
write: yes # Automatically write the file on library import / update?
resume: yes # Resume interrupted imports?
log: beets.log # Where should we write what we do?
group_albums: yes
match:
strong_rec_thresh: 0.1 # Any difference less than this is a strong recommendation
preferred: # Put these at the top of recommendations
countries: [US, GB|UK] # My favorite music publishing countries
media: [CD, Digital Media|File] # My favorite music sources
original_year: yes # entry year is close to entry original_year
bandcamp:
split_artist_title: True
ydl:
download: True
split_files: True
import: True
This should mostly be a drop in replacement for youtube-dl, fixes many issues that plague youtube-dl including very slow downloads.
Try to get track times information from MusicBrainz or another remote source when it is not present in YoutubeDL info.
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.