alexeichhorn / YouTubeKit

YouTube video and audio extractor for iOS, watchOS, visionOS, tvOS and macOS
MIT License
193 stars 41 forks source link

remote mode #34

Open 666bsw opened 8 months ago

666bsw commented 8 months ago

Hello! When using remote mode, the following error often occurs:

Task <88DC4801-6F6D-42C9-A04B-B1F9A0098C1D>.<14> finished with error [57] Error Domain=NSPOSIXErrorDomain Code=57 "Socket is not connected" UserInfo={NSErrorFailingURLStringKey=https://youtubekit-remote.losjet.com/v1?videoID=gir8BEqAutk, NSErrorFailingURLKey=https://youtubekit-remote.losjet.com/v1?videoID=gir8BEqAutk, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalWebSocketTask <88DC4801-6F6D-42C9-A04B-B1F9A0098C1D>.<14>" ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalWebSocketTask <88DC4801-6F6D-42C9-A04B-B1F9A0098C1D>.<14>} Task .<15> finished with error [57] Error Domain=NSPOSIXErrorDomain Code=57 "Socket is not connected" UserInfo={NSErrorFailingURLStringKey=https://youtubekit-remote.losjet.com/v1?videoID=nBZlrbrBO1I, NSErrorFailingURLKey=https://youtubekit-remote.losjet.com/v1?videoID=nBZlrbrBO1I, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalWebSocketTask .<15>" ), _NSURLErrorFailingURLSessionTaskErrorKey=LocalWebSocketTask .<15>}

alexeichhorn commented 8 months ago

I currently don't properly return error messages from the remote server - it just closes connection. Will implement it later. But it basically means that extraction failed because the video is not available (in your country) or is banned.