mirror of
https://github.com/glomatico/gamdl.git
synced 2025-01-23 03:39:03 +00:00
Remove Print Video M3U8 URL
This commit is contained in:
parent
6dd730c368
commit
e76c79d9b4
@ -44,7 +44,7 @@ Some new features that I added:
|
|||||||
```
|
```
|
||||||
usage: gamdl [-h] [-u [URLS_TXT]] [-w WVD_LOCATION] [-f FINAL_PATH]
|
usage: gamdl [-h] [-u [URLS_TXT]] [-w WVD_LOCATION] [-f FINAL_PATH]
|
||||||
[-t TEMP_PATH] [-c COOKIES_LOCATION] [-m] [-p] [-o] [-n]
|
[-t TEMP_PATH] [-c COOKIES_LOCATION] [-m] [-p] [-o] [-n]
|
||||||
[-s] [-e] [-i] [-v]
|
[-s] [-e] [-v]
|
||||||
[url ...]
|
[url ...]
|
||||||
|
|
||||||
Download Apple Music songs/music videos/albums/playlists
|
Download Apple Music songs/music videos/albums/playlists
|
||||||
@ -74,8 +74,6 @@ options:
|
|||||||
-s, --skip-cleanup Skip cleanup (default: False)
|
-s, --skip-cleanup Skip cleanup (default: False)
|
||||||
-e, --print-exceptions
|
-e, --print-exceptions
|
||||||
Print execeptions (default: False)
|
Print execeptions (default: False)
|
||||||
-i, --print-video-m3u8-url
|
|
||||||
Print Video M3U8 URL (default: False)
|
|
||||||
-v, --version show program's version number and exit
|
-v, --version show program's version number and exit
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -86,12 +86,6 @@ def main():
|
|||||||
action = 'store_true',
|
action = 'store_true',
|
||||||
help = 'Print execeptions',
|
help = 'Print execeptions',
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
|
||||||
'-i',
|
|
||||||
'--print-video-m3u8-url',
|
|
||||||
action = 'store_true',
|
|
||||||
help = 'Print Video M3U8 URL',
|
|
||||||
)
|
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-v',
|
'-v',
|
||||||
'--version',
|
'--version',
|
||||||
@ -134,8 +128,6 @@ def main():
|
|||||||
try:
|
try:
|
||||||
webplayback = dl.get_webplayback(track_id)
|
webplayback = dl.get_webplayback(track_id)
|
||||||
if track['type'] == 'music-videos':
|
if track['type'] == 'music-videos':
|
||||||
if args.print_video_m3u8_url:
|
|
||||||
print(webplayback['hls-playlist-url'])
|
|
||||||
tags = dl.get_tags_music_video(track['attributes']['url'].split('/')[-1].split('?')[0])
|
tags = dl.get_tags_music_video(track['attributes']['url'].split('/')[-1].split('?')[0])
|
||||||
final_location = dl.get_final_location('.m4v', tags)
|
final_location = dl.get_final_location('.m4v', tags)
|
||||||
if dl.check_exists(final_location) and not args.overwrite:
|
if dl.check_exists(final_location) and not args.overwrite:
|
||||||
|
Loading…
Reference in New Issue
Block a user