Skip to content

Commit f9efaf6

Browse files
committed
moved from youtube-dl to youtube-dlc
1 parent 25e591a commit f9efaf6

5 files changed

Lines changed: 29 additions & 28 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
</p>
44

55
# vidl
6-
vidl is a script designed to easily download video/audio from anywere, using youtube-dl. It automatically embeds thumbnails to mp3/mp4/m4a files.
6+
vidl is a script designed to easily download video/audio from anywere, using youtube-dlc. It automatically embeds thumbnails to mp3/mp4/m4a files.
77

88
vidl will add metadata to mp3 files if it's found. The `--no-md` option turns this off.
99
`title`, `artist` and `year` metadata is added, but if the URL is a playlist, it also adds `album`, `album artist`, `track number`, `track count`.
@@ -18,7 +18,7 @@ If you're on macOS, I recommend [setting up shortcuts for vidl](#macos-shortcut-
1818

1919
# Updating
2020
vidl is updated by running `pip3 install vidl --upgrade --upgrade-strategy eager`.
21-
If vidl is unable to download a URL, it might be because youtube-dl is outdated. The `--upgrade-strategy eager` part updates youtube-dl.
21+
If vidl is unable to download a URL, it might be because youtube-dlc is outdated. The `--upgrade-strategy eager` part updates youtube-dlc.
2222

2323
# Uninstall
2424
Run `pip3 uninstall vidl`.

poetry.lock

Lines changed: 17 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "vidl"
3-
version = "3.5.1"
3+
version = "3.5.0"
44
description = "Downloads video/audio from anywhere, adding thumbnails and mp3 metadata if applicable"
55
authors = ["kasper.space"]
66
readme = "README.md"
@@ -9,7 +9,7 @@ keywords = ['youtube', 'download', 'video', 'audio', 'music']
99

1010
[tool.poetry.dependencies]
1111
python = "^3.5"
12-
youtube-dl = ">2020"
12+
youtube-dlc = ">2020"
1313
colorama = "^0.3.9"
1414
colorboy = "^1.0.1"
1515
mutagen = "^1.42"

vidl/default_user_md_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ def user_md_parser(smart_md, md, video_info, url_info):
1515
# Same as "md", except this will never include smart metadata (artist/title
1616
# parsed from title).
1717
# video_info:
18-
# Object containing metadata from youtube-dl about the current video.
18+
# Object containing metadata from youtube-dlc about the current video.
1919
# playlist_info:
20-
# An object containing playlist metadata from youtube-dl.
20+
# An object containing playlist metadata from youtube-dlc.
2121
# If the URL isn't a playlist, playlist_info is the same as video_info.
2222
# If the URL is a playlist, it has an "entries" property with video_info objects.
2323
# callback: Callback function. Takes a metadata object as argument.

vidl/dl.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import sys, os, copy, logging
22
from urllib.parse import urlparse
3-
import youtube_dl
3+
import youtube_dlc
44
from colorboy import cyan, green, red
55
from deep_filter import deep_filter
66
from shlex import quote
@@ -68,12 +68,12 @@ def download(options):
6868
'outtmpl': ytdl_output_template,
6969
'quiet': False if options['verbose'] else True,
7070
}
71-
with youtube_dl.YoutubeDL(ytdl_get_info_options) as ytdl:
71+
with youtube_dlc.YoutubeDL(ytdl_get_info_options) as ytdl:
7272
try:
7373
info_result = ytdl.extract_info(options['url'], download=False)
7474
except Exception as err:
7575
if options['verbose']: logging.exception(err)
76-
log.fatal('youtube-dl failed to get URL info')
76+
log.fatal('youtube-dlc failed to get URL info')
7777
if options['verbose']: log.pretty(info_result)
7878

7979
# delete None properties/indexes
@@ -127,8 +127,8 @@ def callback(value):
127127
filename_split[len(filename_split)-1] = options['file_format']
128128
filename = '.'.join(filename_split)
129129
if options['verbose']:
130-
# print youtube-dl command:
131-
command = green('youtube-dl command: ')+'youtube-dl '
130+
# print youtube-dlc command:
131+
command = green('youtube-dlc command: ')+'youtube-dlc '
132132
for arg in ytdl_args+[video['webpage_url']]:
133133
command += quote(arg)+' '
134134
log(command)
@@ -138,7 +138,7 @@ def callback(value):
138138

139139
# download
140140
try:
141-
youtube_dl.main(ytdl_args+[video['webpage_url']])
141+
youtube_dlc.main(ytdl_args+[video['webpage_url']])
142142
except (Exception, SystemExit) as err:
143143
if type(err) == SystemExit and err.code == 0:
144144
# don't treat sys.exit(0) as error

0 commit comments

Comments
 (0)