Remove Print Video M3U8 URL

This commit is contained in:
R. M 2023-05-20 13:14:32 -03:00
parent 6dd730c368
commit e76c79d9b4
2 changed files with 1 additions and 11 deletions

View File

@ -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
``` ```

View File

@ -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: