Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

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

Open
Lzxggg opened this issue Feb 25, 2022 · 22 comments
Open

Comments

@Lzxggg
Copy link

Lzxggg commented Feb 25, 2022

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

@googidaddy
Copy link
Owner

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

@googidaddy
Copy link
Owner

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

fixed!

@Lzxggg
Copy link
Author

Lzxggg commented Feb 26, 2022

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
Copy link
Author

Lzxggg commented Feb 26, 2022

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

@googidaddy
Copy link
Owner

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

ytdl-org/youtube-dl#29326

@googidaddy
Copy link
Owner

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
Copy link
Owner

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.

PROXY=

@Lzxggg
Copy link
Author

Lzxggg commented Feb 26, 2022

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.

PROXY=

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

@Lzxggg
Copy link
Author

Lzxggg commented Feb 26, 2022

like PROXY = 4781?

@googidaddy
Copy link
Owner

like PROXY = 4781?

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

@Lzxggg
Copy link
Author

Lzxggg commented Feb 26, 2022

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

@Lzxggg
Copy link
Author

Lzxggg commented Feb 26, 2022

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
Copy link
Owner

did you try 'pip install ffmpeg'

@Lzxggg
Copy link
Author

Lzxggg commented Feb 26, 2022

pip install ffmpeg

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

@googidaddy
Copy link
Owner

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
Copy link
Author

Lzxggg commented Feb 26, 2022

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
Copy link
Owner

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

@googidaddy
Copy link
Owner

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
Copy link
Author

Lzxggg commented Feb 26, 2022

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_wrap_socket(
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_in_tls)
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
Copy link
Owner

change proxy should resolve this problem.

@googidaddy
Copy link
Owner

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

@Lzxggg
Copy link
Author

Lzxggg commented Feb 26, 2022 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants