alexch33 / super-video-downloader

Video downloader for Android with web browser and player. M3U8 and MPD supported, live stream supported, using youtube-dlp and custom mp4 downloader, cookies supported
GNU General Public License v3.0
23 stars 3 forks source link

tiktok video download issue #7

Closed harisEshaafi closed 1 week ago

harisEshaafi commented 2 weeks ago

hi i use this app code to download tiktok video but i got the error like this

2024-10-18 15:44:04.833 30968-30968 chromium com...player.allformats.mediaplayer I [INFO:CONSOLE(0)] "Access to XMLHttpRequest at 'https://mon.tiktokv.com/monitor_browser/collect/batch/?biz_id=tiktok_webapp_mobile' from origin 'https://www.tiktok.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.", source: https://www.tiktok.com/ (0)

when i download hls tiktok video its say deperacated python version 3.8 upgrade it can you plz guide me about that what the issue here

alexch33 commented 1 week ago

hi i use this app code to download tiktok video but i got the error like this

2024-10-18 15:44:04.833 30968-30968 chromium com...player.allformats.mediaplayer I [INFO:CONSOLE(0)] "Access to XMLHttpRequest at 'https://mon.tiktokv.com/monitor_browser/collect/batch/?biz_id=tiktok_webapp_mobile' from origin 'https://www.tiktok.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.", source: https://www.tiktok.com/ (0)

when i download hls tiktok video its say deperacated python version 3.8 upgrade it can you plz guide me about that what the issue here

hi, @harisEshaafi i have successfully downloaded few tiktok videos right now, logs you are provided doesn't looks like error logs, what code do you use for detecting tiktok videos? how do you find tiktok video url for downloading? could you provide more info, i can't reproduce issue, what android version, also i know nothing about hls in tiktok. As i remember tiktok use mp4 streaming, should first get such link, that looks like https://v16-webapp-prime.tiktok.com/video/tos/useast2a/tos-useast2a-ve-0068c001-euttp/owkXYgIeN3GeEHRgEVLIgxGpE4ArxCmIQkePeF/?a=1988&bti=NDU3ZjAwOg%3D%3D&ch=0&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C&cv=1&br=2204&bt=1102&cs=0&ds=6&ft=4fUEKMR58Zmo005tOb4jVcixrpWrKsd.&mime_type=video_mp4&qs=0&rc=OmkzODc8Zjo5OTQ6NDY3NEBpamtrbG85cmc1dTMzZjgzM0AyMGE1LTEwNi4xXy8yNS8xYSNzNDVgMmQ0cGxgLS1kL2Nzcw%3D%3D&btag=e00088000&expire=1729438433&l=20241018153320D7E0AE6C823B6B2B89C0&ply_type=2&policy=2&signature=1f464d587ef402826392ad00d7234bd4&tk=tt_chain_token&__vid=undefined

harisEshaafi commented 1 week ago

hi first of all thank you for your response i wil explain what i am doing right now url interceptor detect url and when dialogue is open for download on download button i called

private fun onVideoDownloadPropagate(videoInfo: VideoInfo, videoTitle: String, format: String) { val info = videoInfo.copy( title = FileNameCleaner.cleanFileName(videoTitle), formats = VideFormatEntityList(videoInfo.formats.formats.filter { it.format?.contains( format ) ?: false }) ) if (info.isRegularDownload){ Log.d("Tiktok_URL","${info.downloadUrls}") context?.let { YoutubeDlDownloader.startDownload(it, info) } }else{ viewModel.addDownloadWithParams(info.title,info.formats.formats[0].url) } // mainActivity.mainViewModel.downloadVideoEvent.value = info context?.let { Toast.makeText(it, it.getString(R.string.download_started), Toast.LENGTH_SHORT).show() } }

Log.d("Tiktok_URL","${info.downloadUrls}") now print the log its show request
2024-10-21 10:01:36.798 23626-23626 Tiktok_URL com...player.allformats.mediaplayer D [Request{method=GET, url=https://v16-webapp-prime.tiktok.com/video/tos/useast2a/tos-useast2a-ve-0068-euttp/oUPDDPXzEHyQEwFQmw5ASopfCyeRBGE7uIDZn5/?a=1988&bti=ODszNWYuMDE6&ch=0&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C&cv=1&br=1078&bt=539&cs=0&ds=6&ft=-Csk_mauPD12NERcpE-Uxlj2aY6e3wv257cAp&mime_type=video_mp4&qs=4&rc=ZjlkaTw3Mzk2NWQ5ODk1PEBpanNlPHg5cjQ8dTMzZjczM0AtYS00YDQxNTIxNDFiMjRiYSMuZ24uMmRrbWtgLS1kMWNzcw%3D%3D&btag=e00098000&expire=1729508721&l=202410210501202E8CA5A63986E6BD0271&ply_type=2&policy=2&signature=605ed659310bf6c941e3dc13093aa90a&tk=tt_chain_token&__vid=undefined, headers=[Origin:https://www.tiktok.com, Cookie:tt_csrf_token=3ngTCoz2-j7RNF_Xc1NWDnh5l4bOvDuR9vqU; tt_chain_token=2p17wpXtbuD0Lh7Sv4QGDA==; msToken=Z28WI2_reGy1oLy64BzaCteIaSrPZr8e5717SrYBwtrnzsz1LFoPAZpYJgu0kTOIlHaCkUW8O2u4ayccZGp5tlESF0jI8KCASGao3svs1GZnc-1cXDkdgP5X01c-ljRI5KP7yLDySn_krw==; ak_bmsc=0F3BE3E590D98784A88A6B4DC3E1EBE9~000000000000000000000000000000~YAAQMQkgF2rVoouSAQAA1YRzrRl5K3L6h/heyQV+h7DytktbRg5brGze8r5wH8jvQCQLytn4LTyBwYYUO0YmDRDYJ/+OxNLRL+uMxE9VBzEr099249J5OCDqejtQWkku2/euzCZFoQKL2TXN1b/vAT0k1eQ8zkBCpsjBW9eMgQzCUC3viSyR4pyXsc1yE6tVLst9swjTTxj8930gtzAmb1Ea23VVVA56JrLvjgdE5yP6z5Bpo6teA+WKw6bCEE/BqNONUgbY+W5OiSVrxmAePrGM2WbUR6Tnm8U/7AXplkuV5RVS/m0A1Qn0VhWs2eVDKwqMTg2GHuMqsywq5DJveHvG82xzeZfVmdCmiuqGI196BdGZhienv2iXO9c4Z0E+WFoj8HkKFfU0Acs=; ttwid=1%7CT7EeM0i_Tw9Aon1r-DxdrucDUORLrssx_a8OXBRfvmI%7C1729486883%7C8c20d7ccda95a3556dc200da1cd394fb7a65a62c75dad4d492784a1f24bafad3, sec-ch-ua:"Chromium";v="130", "Android WebView";v="130", "Not?A_Brand";v="99", sec-ch-ua-mobile:?1, Accept:/, sec-ch-ua-platform:"Android", User-Agent:Mozilla/5.0 (Linux; Android 14; SM-S901E Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/130.0.6723.58 Mobile Safari/537.36, Referer:https://www.tiktok.com/, range:bytes=209715-1876804]}]

but youtube dl worker show error in notification that say Failed deprecated Feature: Support for python 3.8 has been deprecated what i am doing wrong and also in YoutubeDlDownloaderWorker class fun startdownload i add the logs here are the result

2024-10-21 10:19:16.529 30163-30163 Tiktok_URL com...player.allformats.mediaplayer D [Request{method=GET, url=https://v16-webapp-prime.tiktok.com/video/tos/useast2a/tos-useast2a-ve-0068-euttp/o0GroDEwnsAHgOefEse1brgQDfAkFGgjHExOmI/?a=1988&bti=NDU3ZjAwOg%3D%3D&ch=0&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C&cv=1&br=2118&bt=1059&cs=0&ds=6&ft=I~da4ogsD12NvUfAieIxR1q_glBF-UjNSaopiX&mime_type=video_mp4&qs=0&rc=aGZkZjo3ODhkOzo4NDtoOkBpamtoOG45cmdtdjMzZjgzM0AzXzNfMl5eXjYxYjYtLWNjYSNlNGYtMmRjYzBgLS1kL2Nzcw%3D%3D&btag=e00090000&expire=1729659860&l=20241021050123A65CFFF3DD4821BD1B74&ply_type=2&policy=2&signature=a3199eaade790aa4fbe35ecbd702b0ec&tk=tt_chain_token&__vid=undefined, headers=[Origin:https://www.tiktok.com, Cookie:tt_csrf_token=3ngTCoz2-j7RNF_Xc1NWDnh5l4bOvDuR9vqU; tt_chain_token=2p17wpXtbuD0Lh7Sv4QGDA==; ak_bmsc=0F3BE3E590D98784A88A6B4DC3E1EBE9~000000000000000000000000000000~YAAQMQkgF2rVoouSAQAA1YRzrRl5K3L6h/heyQV+h7DytktbRg5brGze8r5wH8jvQCQLytn4LTyBwYYUO0YmDRDYJ/+OxNLRL+uMxE9VBzEr099249J5OCDqejtQWkku2/euzCZFoQKL2TXN1b/vAT0k1eQ8zkBCpsjBW9eMgQzCUC3viSyR4pyXsc1yE6tVLst9swjTTxj8930gtzAmb1Ea23VVVA56JrLvjgdE5yP6z5Bpo6teA+WKw6bCEE/BqNONUgbY+W5OiSVrxmAePrGM2WbUR6Tnm8U/7AXplkuV5RVS/m0A1Qn0VhWs2eVDKwqMTg2GHuMqsywq5DJveHvG82xzeZfVmdCmiuqGI196BdGZhienv2iXO9c4Z0E+WFoj8HkKFfU0Acs=; bm_sv=2A296D02DB0DBDED9B0ECC8BC94B2DDD~YAAQlljNF+hwzamSAQAAwb6DrRnMl9U257e8y9AnjsFdXnCdemzlYa26I88f06sPlHhkIF3tV4rJc4gn7yQB1JaR1IOyCeNovnZqnf6CcqfIu9cDFiSf/fKn3rjRIWvOuEkzHkH9gIu2PqT/FxYXXWoiwkV6sPPlpwQAOm6UzAvB1I6VQ/wfYmZmdi9p5SWiztkD5wVwjyXFqwS1f2M3uzljA1P/tBupEXFJQuSdCBM45es8xtMOs1obH1+Q14cd~1; ttwid=1%7CT7EeM0i_Tw9Aon1r-DxdrucDUORLrssx_a8OXBRfvmI%7C1729487949%7C5d81dea9816c3d43cab50ecbc546e93dc4b5788feaf3371ebdb91579b75e4423; msToken=8GdaHuNJ9_kxo3kjB_exPLNcootIpJNIPoS7AUcayx23Jp6e4nflBwK1Lsl2vbBYDbBqR1hm1BivwfB9XrIlHcF0_4HxeMmFfToTe2dPMehwbeu6Rc3CUQ8jdSZhaH4FgRYgqcXcsou-2A==, sec-ch-ua:"Chromium";v="130", "Android WebView";v="130", "Not?A_Brand";v="99", sec-ch-ua-mobile:?1, Accept:/, sec-ch-ua-platform:"Android", User-Agent:Mozilla/5.0 (Linux; Android 14; SM-S901E Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/130.0.6723.58 Mobile Safari/537.36, Referer:https://www.tiktok.com/, range:bytes=209715-2259757]}] 2024-10-21 10:19:16.922 30163-30387 Tiktok_URL com...player.allformats.mediaplayer D Starting download process for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11 2024-10-21 10:19:16.928 30163-30387 Tiktok_URL com...player.allformats.mediaplayer D Headers decoded for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11, headers: {"abr":0,"asr":0,"ext":"mp4","fileSize":2050043,"fileSizeApproximate":0,"format":"video resolution as in the player","formatId":"0","fps":0,"height":0,"httpHeaders":{"Origin":"https://www.tiktok.com","Cookie":"tt_csrf_token\u003d3ngTCoz2-j7RNF_Xc1NWDnh5l4bOvDuR9vqU; tt_chain_token\u003d2p17wpXtbuD0Lh7Sv4QGDA\u003d\u003d; ak_bmsc\u003d0F3BE3E590D98784A88A6B4DC3E1EBE9~000000000000000000000000000000~YAAQMQkgF2rVoouSAQAA1YRzrRl5K3L6h/heyQV+h7DytktbRg5brGze8r5wH8jvQCQLytn4LTyBwYYUO0YmDRDYJ/+OxNLRL+uMxE9VBzEr099249J5OCDqejtQWkku2/euzCZFoQKL2TXN1b/vAT0k1eQ8zkBCpsjBW9eMgQzCUC3viSyR4pyXsc1yE6tVLst9swjTTxj8930gtzAmb1Ea23VVVA56JrLvjgdE5yP6z5Bpo6teA+WKw6bCEE/BqNONUgbY+W5OiSVrxmAePrGM2WbUR6Tnm8U/7AXplkuV5RVS/m0A1Qn0VhWs2eVDKwqMTg2GHuMqsywq5DJveHvG82xzeZfVmdCmiuqGI196BdGZhienv2iXO9c4Z0E+WFoj8HkKFfU0Acs\u003d; bm_sv\u003d2A296D02DB0DBDED9B0ECC8BC94B2DDD~YAAQlljNF+hwzamSAQAAwb6DrRnMl9U257e8y9AnjsFdXnCdemzlYa26I88f06sPlHhkIF3tV4rJc4gn7yQB1JaR1IOyCeNovnZqnf6CcqfIu9cDFiSf/fKn3rjRIWvOuEkzHkH9gIu2PqT/FxYXXWoiwkV6sPPlpwQAOm6UzAvB1I6VQ/wfYmZmdi9p5SWiztkD5wVwjyXFqwS1f2M3uzljA1P/tBupEXFJQuSdCBM45es8xtMOs1obH1+Q14cd~1; ttwid\u003d1%7CT7EeM0i_Tw9Aon1r-DxdrucDUORLrssx_a8OXBRfvmI%7C1729487949%7C5d81dea9816c3d43cab50ecbc546e93dc4b5788feaf3371ebdb91579b75e4423; msToken\u003d8GdaHuNJ9_kxo3kjB_exPLNcootIpJNIPoS7AUcayx23Jp6e4nflBwK1Lsl2vbBYDbBqR1hm1BivwfB9XrIlHcF0_4HxeMmFfToTe2dPMehwbeu6Rc3CUQ8jdSZhaH4FgRYgqcXcsou-2A\u003d\u003d","sec-ch-ua":"\"Chromium\";v\u003d\"130\", \"Android WebView\";v\u003d\"130\", \"Not?A_Brand\";v\u003d\"99\"","sec-ch-ua-mobile":"?1","Accept":"/","sec-ch-ua-platform":"\"Android\"","User-Agent":"Mozilla/5.0 (Linux; Android 14; SM-S901E Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/130.0.6723.58 Mobile Safari/537.36","Referer":"https://www.tiktok.com/","range":"bytes\u003d209715-2259757"},"id":"8d471804-4cf0-4f36-9a3f-a1915c562a95","preference":0,"tbr":0,"url":"https://v16-webapp-prime.tiktok.com/video/tos/useast2a/tos-useast2a-ve-0068-euttp/o0GroDEwnsAHgOefEse1brgQDfAkFGgjHExOmI/?a\u003d1988\u0026bti\u003dNDU3ZjAwOg%3D%3D\u0026ch\u003d0\u0026cr\u003d3\u0026dr\u003d0\u0026lr\u003dall\u0026cd\u003d0%7C0%7C0%7C\u0026cv\u003d1\u0026br\u003d2118\u0026bt\u003d1059\u0026cs\u003d0\u0026ds\u003d6\u0026ft\u003dI~da4ogsD12NvUfAieIxR1q_glBF-UjNSaopiX\u0026mime_type\u003dvideo_mp4\u0026qs\u003d0\u0026rc\u003daGZkZjo3ODhkOzo4NDtoOkBpamtoOG45cmdtdjMzZjgzM0AzXzNfMl5eXjYxYjYtLWNjYSNlNGYtMmRjYzBgLS1kL2Nzcw%3D%3D\u0026btag\u003de00090000\u0026expire\u003d1729659860\u0026l\u003d20241021050123A65CFFF3DD4821BD1B74\u0026ply_type\u003d2\u0026policy\u003d2\u0026signature\u003da3199eaade790aa4fbe35ecbd702b0ec\u0026tk\u003dtt_chain_token\u0026__vid\u003dundefined","width":0} 2024-10-21 10:19:16.965 30163-30387 Tiktok_URL com...player.allformats.mediaplayer D Download URL for task ID 0f41210e-a52f-4144-89cb-c978a7f32a11: https://www.tiktok.com/ 2024-10-21 10:19:16.965 30163-30387 Tiktok_URL com...player.allformats.mediaplayer D https://v16-webapp-prime.tiktok.com/video/tos/useast2a/tos-useast2a-ve-0068-euttp/o0GroDEwnsAHgOefEse1brgQDfAkFGgjHExOmI/?a=1988&bti=NDU3ZjAwOg%3D%3D&ch=0&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C&cv=1&br=2118&bt=1059&cs=0&ds=6&ft=I~da4ogsD12NvUfAieIxR1q_glBF-UjNSaopiX&mime_type=video_mp4&qs=0&rc=aGZkZjo3ODhkOzo4NDtoOkBpamtoOG45cmdtdjMzZjgzM0AzXzNfMl5eXjYxYjYtLWNjYSNlNGYtMmRjYzBgLS1kL2Nzcw%3D%3D&btag=e00090000&expire=1729659860&l=20241021050123A65CFFF3DD4821BD1B74&ply_type=2&policy=2&signature=a3199eaade790aa4fbe35ecbd702b0ec&tk=tt_chain_token&__vid=undefined 2024-10-21 10:19:16.979 30163-30387 Tiktok_URL com...player.allformats.mediaplayer D Temporary directory does not exist for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11, creating it. 2024-10-21 10:19:16.983 30163-31338 Tiktok_URL com...player.allformats.mediaplayer D Monitoring process for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11, folder size: 0 2024-10-21 10:19:17.021 30163-30387 Tiktok_URL com...player.allformats.mediaplayer D Setting download format for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11 as both video and audio 2024-10-21 10:19:17.024 30163-30387 Tiktok_URL com...player.allformats.mediaplayer D Adding header Origin for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11 2024-10-21 10:19:17.025 30163-30387 Tiktok_URL com...player.allformats.mediaplayer D Adding header sec-ch-ua for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11 2024-10-21 10:19:17.025 30163-30387 Tiktok_URL com...player.allformats.mediaplayer D Adding header sec-ch-ua-mobile for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11 2024-10-21 10:19:17.025 30163-30387 Tiktok_URL com...player.allformats.mediaplayer D Adding header Accept for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11 2024-10-21 10:19:17.026 30163-30387 Tiktok_URL com...player.allformats.mediaplayer D Adding header sec-ch-ua-platform for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11 2024-10-21 10:19:17.026 30163-30387 Tiktok_URL com...player.allformats.mediaplayer D Adding header User-Agent for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11 2024-10-21 10:19:17.027 30163-30387 Tiktok_URL com...player.allformats.mediaplayer D Adding header Referer for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11 2024-10-21 10:19:17.027 30163-30387 Tiktok_URL com...player.allformats.mediaplayer D Adding header range for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11 2024-10-21 10:19:17.983 30163-31338 Tiktok_URL com...player.allformats.mediaplayer D Monitoring process for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11, folder size: 0 2024-10-21 10:19:18.986 30163-31338 Tiktok_URL com...player.allformats.mediaplayer D Monitoring process for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11, folder size: 0 2024-10-21 10:19:19.982 30163-31338 Tiktok_URL com...player.allformats.mediaplayer D Monitoring process for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11, folder size: 0 2024-10-21 10:19:20.983 30163-31338 Tiktok_URL com...player.allformats.mediaplayer D Monitoring process for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11, folder size: 0 2024-10-21 10:19:21.983 30163-31338 Tiktok_URL com...player.allformats.mediaplayer D Monitoring process for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11, folder size: 0 2024-10-21 10:19:22.983 30163-31338 Tiktok_URL com...player.allformats.mediaplayer D Monitoring process for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11, folder size: 0 2024-10-21 10:19:23.984 30163-31338 Tiktok_URL com...player.allformats.mediaplayer D Monitoring process for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11, folder size: 0 2024-10-21 10:19:24.990 30163-31338 Tiktok_URL com...player.allformats.mediaplayer D Monitoring process for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11, folder size: 0 2024-10-21 10:19:25.369 30163-31342 Tiktok_URL com...player.allformats.mediaplayer D Download progress for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11: -1.0% 2024-10-21 10:19:25.429 30163-31342 Tiktok_URL com...player.allformats.mediaplayer D Download progress for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11: -1.0% 2024-10-21 10:19:25.432 30163-31342 Tiktok_URL com...player.allformats.mediaplayer D Download progress for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11: -1.0% 2024-10-21 10:19:25.435 30163-31342 Tiktok_URL com...player.allformats.mediaplayer D Download progress for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11: -1.0% 2024-10-21 10:19:25.982 30163-31338 Tiktok_URL com...player.allformats.mediaplayer D Monitoring process for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11, folder size: 0 2024-10-21 10:19:26.981 30163-31338 Tiktok_URL com...player.allformats.mediaplayer D Monitoring process for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11, folder size: 0 2024-10-21 10:19:27.982 30163-31338 Tiktok_URL com...player.allformats.mediaplayer D Monitoring process for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11, folder size: 0 2024-10-21 10:19:28.982 30163-31338 Tiktok_URL com...player.allformats.mediaplayer D Monitoring process for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11, folder size: 0 2024-10-21 10:19:29.867 30163-30387 Tiktok_URL com...player.allformats.mediaplayer E Download error for task ID: 0f41210e-a52f-4144-89cb-c978a7f32a11, error: Deprecated Feature: Support for Python version 3.8 has been deprecated. Please update to Python 3.9 or above ERROR: [generic] Unable to download webpage: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1108) (caused by SSLError('[SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:1108)')); please report this issue on https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using yt-dlp -U

alexch33 commented 1 week ago

hi, @harisEshaafi, glad to help, i think, i understood. You are using YoutubeDlDownloaderWorker for downloading regular mp4 video, this will not work, because youtube-dlp very often failing downloading of regular files, try to use CustomRegularDownloaderWorker instead.

And let me give overall info about detection and downloading logic in this app:

  1. YoutubeDLP work with web sites urls(not video link, but link to video's web page) and with m3u8 and mpd urls (ONLY, almost but some txts)
  2. All regular video files must be downloaded using CustomRegularDownloaderWorker class
  3. All tiktok videos must be downloaded in SINGLE THREAD, or video will be corrupted
  4. All regular videos detected by getting request and if content type is video, it may be downloaded

Just replace context?.let { YoutubeDlDownloader.startDownload(it, info) } to context?.let { CustomRegularDownloader.startDownload(it, info) } and check that downloading in single thread(CustomFileDownloader should be created with threadCount=1)

harisEshaafi commented 1 week ago

thak you yesterday i resolve this thing thanks again for this wonderfull work