@@ -40,7 +40,7 @@ def download_film(select_title: MediaItem) -> str:
4040 - str: output path if successful, otherwise None
4141 """
4242 start_message ()
43- console .print (f"[bold yellow]Download:[/bold yellow] [red]{ site_constant .SITE_NAME } [/red] → [cyan]{ select_title .name } [/cyan] \n " )
43+ console .print (f"\n [bold yellow]Download:[/bold yellow] [red]{ site_constant .SITE_NAME } [/red] → [cyan]{ select_title .name } [/cyan] \n " )
4444
4545 # Define filename and path for the downloaded video
4646 mp4_name = os_manager .get_sanitize_file (select_title .name ) + ".mp4"
@@ -49,7 +49,7 @@ def download_film(select_title: MediaItem) -> str:
4949 # Generate mpd and license URLs
5050 url_id = select_title .get ('url' ).split ('/' )[- 1 ]
5151 device_id = generate_device_id ()
52- mpd_url , mpd_headers = get_playback_session (get_auth_token (device_id ), device_id , url_id )
52+ mpd_url , mpd_headers , mpd_list_sub = get_playback_session (get_auth_token (device_id ), device_id , url_id )
5353 parsed_url = urlparse (mpd_url )
5454 query_params = parse_qs (parsed_url .query )
5555
@@ -58,6 +58,7 @@ def download_film(select_title: MediaItem) -> str:
5858 cdm_device = get_wvd_path (),
5959 license_url = 'https://www.crunchyroll.com/license/v1/license/widevine' ,
6060 mpd_url = mpd_url ,
61+ mpd_sub_list = mpd_list_sub ,
6162 output_path = os .path .join (mp4_path , mp4_name ),
6263 )
6364 dash_process .parse_manifest (custom_headers = mpd_headers )
0 commit comments