googidaddy / bili-trash-bin

a pro tool for video porter.
GNU General Public License v3.0
18 stars 0 forks source link

AttributeError: type object 'YtbToolMan' has no attribute 'url_list' #1

Open Lzxggg opened 2 years ago

Lzxggg commented 2 years ago

Hello man , I want to know why I get this error? and how can I use the UI version . thanks

googidaddy commented 2 years ago

sry, will fix this bug few days. (on weekend :) And I didn't develop a UI version for now.

googidaddy commented 2 years ago

Hello man , I want to know why I get this error? and how can I use the UI version . thanks

fixed!

Lzxggg commented 2 years ago

Hello man , I want to know why I get this error? and how can I use the UI version . thanks

fixed!

the details of errors was shown as :

[youtube] 63LJSGkfBpw: Downloading webpage WARNING: [youtube] Unable to download webpage: [youtube] 63LJSGkfBpw: Downloading android player API JSON

I ensure that I open the VPN and normally open the youtube website How can I deal with it? thanks

Lzxggg commented 2 years ago

I successfully use yt-dlp to download in cmd . but youtube-dl is so slowly , is it reason cause it?

googidaddy commented 2 years ago

I successfully use yt-dlp to download in cmd . but youtube-dl is so slowly , is it reason cause it?

https://github.com/ytdl-org/youtube-dl/issues/29326

googidaddy commented 2 years ago

Hello man , I want to know why I get this error? and how can I use the UI version . thanks

fixed!

the details of errors was shown as :

[youtube] 63LJSGkfBpw: Downloading webpage WARNING: [youtube] Unable to download webpage: [youtube] 63LJSGkfBpw: Downloading android player API JSON

I ensure that I open the VPN and normally open the youtube website How can I deal with it? thanks

you should make the process totally run through your vpn proxy.

googidaddy commented 2 years ago

Hello man , I want to know why I get this error? and how can I use the UI version . thanks

fixed!

the details of errors was shown as : [youtube] 63LJSGkfBpw: Downloading webpage WARNING: [youtube] Unable to download webpage: [youtube] 63LJSGkfBpw: Downloading android player API JSON I ensure that I open the VPN and normally open the youtube website How can I deal with it? thanks

you should make the process totally run through your vpn proxy.

https://github.com/googidaddy/bili-trash-bin/blob/62a78e33d17b76520d45dd0e121544d91aef57de/.env#L2

Lzxggg commented 2 years ago

Hello man , I want to know why I get this error? and how can I use the UI version . thanks

fixed!

the details of errors was shown as : [youtube] 63LJSGkfBpw: Downloading webpage WARNING: [youtube] Unable to download webpage: [youtube] 63LJSGkfBpw: Downloading android player API JSON I ensure that I open the VPN and normally open the youtube website How can I deal with it? thanks

you should make the process totally run through your vpn proxy.

https://github.com/googidaddy/bili-trash-bin/blob/62a78e33d17b76520d45dd0e121544d91aef57de/.env#L2

Should I fill the http port or socks port in VPN?

Lzxggg commented 2 years ago

like PROXY = 4781?

googidaddy commented 2 years ago

like PROXY = 4781?

i just know '127.0.0.1:7890' is for clash.

Lzxggg commented 2 years ago

sry, I encounter the new problem that "ERROR: Postprocessing: ffmpeg not found. Please install or provide the path using --ffmpeg-location"

Lzxggg commented 2 years ago

sry, I encounter the new problem that "ERROR: Postprocessing: ffmpeg not found. Please install or provide the path using --ffmpeg-location"

I already install it no matter in python or windows

googidaddy commented 2 years ago

did you try 'pip install ffmpeg'

Lzxggg commented 2 years ago

pip install ffmpeg

ofcuz Requirement already satisfied: ffmpeg in c:\users\lzxgg

googidaddy commented 2 years ago

pip install ffmpeg

ofcuz Requirement already satisfied: ffmpeg in c:\users\lzxgg

oh I see. Try to join the path or reload the folder? or: choco install ffmpeg

Lzxggg commented 2 years ago

the new step encounter errors unfortunately
[MyCustom] Doing stuff Uncaught exception: Traceback (most recent call last): File "D:\bilibili\bili-trash-bin-master\video.py", line 76, in asyncio.run(main()) File "C:\Users\Lzxgg\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Users\Lzxgg\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete return future.result() File "D:\bilibili\bili-trash-bin-master\video.py", line 74, in main test = await YtbToolMan.create() File "D:\bilibili\bili-trash-bin-master\video.py", line 17, in create await self.getYoutubeSubscribe(self) File "D:\bilibili\bili-trash-bin-master\video.py", line 25, in getYoutubeSubscribe await self.getYoutubeUrls(self, i, youtube_up_list[i]) File "D:\bilibili\bili-trash-bin-master\video.py", line 67, in getYoutubeUrls await upload_video(f'https://www.youtube.com{url}') File "D:\bilibili\bili-trash-bin-master\upload.py", line 18, in upload_video video.tid = int(os.getenv('ID')) | int("21") ValueError: invalid literal for int() with base 10: ''

googidaddy commented 2 years ago

try below video.tid = int(os.getenv('ID')) | int("21") -> video.tid = int("21") I will fix this bug after home...

googidaddy commented 2 years ago

try below video.tid = int(os.getenv('ID')) | int("21") -> video.tid = int("21") I will fix this bug after home...

I didn't write the description about ID. My bad...

Lzxggg commented 2 years ago

video.tid = int("21")

I guess you should work now , so , I don't bother u now . I get a new error again , thanks for your patience, thanks again!

ncaught exception: Traceback (most recent call last): File "C:\Users\Lzxgg\AppData\Roaming\Python\Python39\site-packages\urllib3\connectionpool.py", line 696, in urlopen self._prepare_proxy(conn) File "C:\Users\Lzxgg\AppData\Roaming\Python\Python39\site-packages\urllib3\connectionpool.py", line 964, in _prepare_proxy conn.connect() File "C:\Users\Lzxgg\AppData\Roaming\Python\Python39\site-packages\urllib3\connection.py", line 364, in connect conn = self._connect_tls_proxy(hostname, conn) File "C:\Users\Lzxgg\AppData\Roaming\Python\Python39\site-packages\urllib3\connection.py", line 501, in _connect_tls_proxy socket = ssl_wrapsocket( File "C:\Users\Lzxgg\AppData\Roaming\Python\Python39\site-packages\urllib3\util\ssl.py", line 453, in ssl_wrap_socket ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_intls) File "C:\Users\Lzxgg\AppData\Roaming\Python\Python39\site-packages\urllib3\util\ssl.py", line 495, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock) File "C:\Users\Lzxgg\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "C:\Users\Lzxgg\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 1040, in _create self.do_handshake() File "C:\Users\Lzxgg\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 1309, in do_handshake self._sslobj.do_handshake() ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1129)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Lzxgg\AppData\Roaming\Python\Python39\site-packages\requests\adapters.py", line 440, in send resp = conn.urlopen( File "C:\Users\Lzxgg\AppData\Roaming\Python\Python39\site-packages\urllib3\connectionpool.py", line 755, in urlopen retries = retries.increment( File "C:\Users\Lzxgg\AppData\Roaming\Python\Python39\site-packages\urllib3\util\retry.py", line 574, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='member.bilibili.com', port=443): Max retries exceeded with url: /preupload?r=probe (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "D:\bilibili\bili-trash-bin-master\video.py", line 76, in asyncio.run(main()) File "C:\Users\Lzxgg\AppData\Local\Programs\Python\Python39\lib\asyncio\runners.py", line 44, in run return loop.run_until_complete(main) File "C:\Users\Lzxgg\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete return future.result() File "D:\bilibili\bili-trash-bin-master\video.py", line 74, in main test = await YtbToolMan.create() File "D:\bilibili\bili-trash-bin-master\video.py", line 17, in create await self.getYoutubeSubscribe(self) File "D:\bilibili\bili-trash-bin-master\video.py", line 25, in getYoutubeSubscribe await self.getYoutubeUrls(self, i, youtube_up_list[i]) File "D:\bilibili\bili-trash-bin-master\video.py", line 67, in getYoutubeUrls await upload_video(f'https://www.youtube.com{url}') File "D:\bilibili\bili-trash-bin-master\upload.py", line 26, in upload_video video_part = await bili.upload_file(video_path) File "D:\bilibili\bili-trash-bin-master\plugins\bili_webup.py", line 116, in upload_file self._auto_os = self.probe() File "D:\bilibili\bili-trash-bin-master\plugins\bili_webup.py", line 91, in probe ret = self.__session.get('https://member.bilibili.com/preupload?r=probe', timeout=5).json() File "C:\Users\Lzxgg\AppData\Roaming\Python\Python39\site-packages\requests\sessions.py", line 542, in get return self.request('GET', url, kwargs) File "C:\Users\Lzxgg\AppData\Roaming\Python\Python39\site-packages\requests\sessions.py", line 529, in request resp = self.send(prep, send_kwargs) File "C:\Users\Lzxgg\AppData\Roaming\Python\Python39\site-packages\requests\sessions.py", line 645, in send r = adapter.send(request, **kwargs) File "C:\Users\Lzxgg\AppData\Roaming\Python\Python39\site-packages\requests\adapters.py", line 517, in send raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host='member.bilibili.com', port=443): Max retries exceeded with url: /preupload?r=probe (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1129)')))

googidaddy commented 2 years ago

change proxy should resolve this problem.

googidaddy commented 2 years ago

I recommend to run this tool on abroad server. And buz of setting environment troubles, i will build it with docker soon.

Lzxggg commented 2 years ago

oh  thanks .  I will learn about some knowledge about docker . I  hope for docker version sincerely!

------------------ 原始邮件 ------------------ 发件人: @.>; 发送时间: 2022年2月26日(星期六) 中午11:41 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [googidaddy/bili-trash-bin] AttributeError: type object 'YtbToolMan' has no attribute 'url_list' (Issue #1)

I recommend to run this tool on abroad server. And buz of setting environment troubles, i will build it with docker soon.

— Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you authored the thread.Message ID: @.***>