Problem with dreamanime
See original GitHub issueDescribe the bug
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
To reproduce
anime -ll DEBUG dl 'penguin highway' --provider dreamanime
LOG
matt@matt:~$ anime -ll DEBUG dl 'penguin highway' --provider dreamanime
2020-05-31 19:08:26 matt.local anime_downloader.util[41512] INFO anime-downloader 4.3.0
2020-05-31 19:08:26 matt.local anime_downloader.util[41512] DEBUG Platform: macOS-10.14.6-x86_64-i386-64bit
2020-05-31 19:08:26 matt.local anime_downloader.util[41512] DEBUG Python 3.8.2
2020-05-31 19:08:26 matt.local anime_downloader.sites.helpers.request[41512] DEBUG -----
2020-05-31 19:08:26 matt.local anime_downloader.sites.helpers.request[41512] DEBUG GET https://dreamanime.fun/search
2020-05-31 19:08:26 matt.local anime_downloader.sites.helpers.request[41512] DEBUG {'params': {'term': 'penguin highway'}}
2020-05-31 19:08:26 matt.local anime_downloader.sites.helpers.request[41512] DEBUG {'user-agent': 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11'}
2020-05-31 19:08:26 matt.local anime_downloader.sites.helpers.request[41512] DEBUG -----
send: b'GET /search?term=penguin+highway HTTP/1.1\r\nHost: dreamanime.fun\r\nuser-agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11\r\nAccept-Encoding: gzip, deflate\r\nAccept: */*\r\nConnection: keep-alive\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Sun, 31 May 2020 18:08:26 GMT
header: Content-Type: text/html; charset=UTF-8
header: Transfer-Encoding: chunked
header: Connection: keep-alive
header: Set-Cookie: __cfduid=d9c4eb3fdfa4afabb58b112d53df702da1590948506; expires=Tue, 30-Jun-20 18:08:26 GMT; path=/; domain=.dreamanime.fun; HttpOnly; SameSite=Lax; Secure
header: X-Powered-By: PHP/7.0.33
header: Expires: Thu, 19 Nov 1981 08:52:00 GMT
header: Cache-Control: no-store, no-cache, must-revalidate
header: Pragma: no-cache
header: Set-Cookie: PHPSESSID=t18d77encvnr5dm5bnd2o35sc3; path=/
header: Vary: Accept-Encoding
header: CF-Cache-Status: DYNAMIC
header: cf-request-id: 030d84c4770000e67479bad200000001
header: Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
header: Server: cloudflare
header: CF-RAY: 59c2a3e72f87e674-LHR
header: Content-Encoding: gzip
2020-05-31 19:08:26 matt.local anime_downloader.session[41512] DEBUG uncached request
2020-05-31 19:08:26 matt.local anime_downloader.sites.helpers.request[41512] DEBUG https://dreamanime.fun/search?term=penguin+highway
2020-05-31 19:08:26 matt.local anime_downloader.sites.helpers.request[41512] DEBUG /var/folders/sy/jcz9n9dn2t98677rzpmyvkr00000gn/T/animedl2ql9w0xf/tmpnice5l7j
+--------+-----------------+--------+
| 1 | Penguin Highway | |
|--------+-----------------+--------|
| SlNo | Title | Meta |
+--------+-----------------+--------+
Enter the anime no: [1]: 1
2020-05-31 19:08:30 matt.local anime_downloader.util[41512] INFO Selected Penguin Highway
2020-05-31 19:08:30 matt.local anime_downloader.sites.anime[41512] INFO Extracting episode info from page
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG -----
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG GET https://dreamanime.fun/anime/3939-penguin-highway
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG {}
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG {'user-agent': 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11'}
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG -----
send: b'GET /anime/3939-penguin-highway HTTP/1.1\r\nHost: dreamanime.fun\r\nuser-agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11\r\nAccept-Encoding: gzip, deflate\r\nAccept: */*\r\nConnection: keep-alive\r\nCookie: __cfduid=d9c4eb3fdfa4afabb58b112d53df702da1590948506; PHPSESSID=t18d77encvnr5dm5bnd2o35sc3\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Sun, 31 May 2020 18:08:30 GMT
header: Content-Type: text/html; charset=UTF-8
header: Transfer-Encoding: chunked
header: Connection: keep-alive
header: X-Powered-By: PHP/7.0.33
header: Expires: Thu, 19 Nov 1981 08:52:00 GMT
header: Cache-Control: no-store, no-cache, must-revalidate
header: Pragma: no-cache
header: Vary: Accept-Encoding
header: CF-Cache-Status: DYNAMIC
header: cf-request-id: 030d84d1970000e674798c1200000001
header: Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
header: Server: cloudflare
header: CF-RAY: 59c2a3fc2917e674-LHR
header: Content-Encoding: gzip
2020-05-31 19:08:30 matt.local anime_downloader.session[41512] DEBUG uncached request
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG https://dreamanime.fun/anime/3939-penguin-highway
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG /var/folders/sy/jcz9n9dn2t98677rzpmyvkr00000gn/T/animedl2ql9w0xf/tmpiecx5o17
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG -----
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG GET https://dreamanime.fun/anime/3939-penguin-highway
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG {}
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG {'user-agent': 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11'}
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG -----
2020-05-31 19:08:30 matt.local anime_downloader.session[41512] DEBUG cached request
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG https://dreamanime.fun/anime/3939-penguin-highway
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG /var/folders/sy/jcz9n9dn2t98677rzpmyvkr00000gn/T/animedl2ql9w0xf/tmpclzcsyad
2020-05-31 19:08:30 matt.local anime_downloader.sites.anime[41512] DEBUG EPISODE IDS: length: 1, ids: ['http://dreamanime.fun/anime/watch/189328-penguin-highway-movie-english-sub']
2020-05-31 19:08:30 matt.local anime_downloader.commands.dl[41512] INFO Found anime: Penguin Highway
2020-05-31 19:08:30 matt.local anime_downloader.commands.dl[41512] INFO Downloading to /Users/matt/Downloads/1234_JD
2020-05-31 19:08:30 matt.local anime_downloader.sites.anime[41512] DEBUG Extracting stream info of id: http://dreamanime.fun/anime/watch/189328-penguin-highway-movie-english-sub
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG -----
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG GET http://dreamanime.fun/anime/watch/189328-penguin-highway-movie-english-sub
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG {}
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG {'user-agent': 'Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11'}
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG -----
send: b'GET /anime/watch/189328-penguin-highway-movie-english-sub HTTP/1.1\r\nHost: dreamanime.fun\r\nuser-agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11\r\nAccept-Encoding: gzip, deflate\r\nAccept: */*\r\nConnection: keep-alive\r\nCookie: PHPSESSID=t18d77encvnr5dm5bnd2o35sc3\r\n\r\n'
reply: 'HTTP/1.1 301 Moved Permanently\r\n'
header: Date: Sun, 31 May 2020 18:08:30 GMT
header: Transfer-Encoding: chunked
header: Connection: keep-alive
header: Cache-Control: max-age=3600
header: Expires: Sun, 31 May 2020 19:08:30 GMT
header: Location: https://dreamanime.fun/anime/watch/189328-penguin-highway-movie-english-sub
header: cf-request-id: 030d84d2820000f4333ca28200000001
header: Vary: Accept-Encoding
header: Server: cloudflare
header: CF-RAY: 59c2a3fd9c27f433-LHR
2020-05-31 19:08:30 matt.local anime_downloader.session[41512] DEBUG uncached request
send: b'GET /anime/watch/189328-penguin-highway-movie-english-sub HTTP/1.1\r\nHost: dreamanime.fun\r\nuser-agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.11 (KHTML, like Gecko) Chrome/17.0.963.56 Safari/535.11\r\nAccept-Encoding: gzip, deflate\r\nAccept: */*\r\nConnection: keep-alive\r\nCookie: __cfduid=d9c4eb3fdfa4afabb58b112d53df702da1590948506; PHPSESSID=t18d77encvnr5dm5bnd2o35sc3\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Sun, 31 May 2020 18:08:30 GMT
header: Content-Type: text/html; charset=UTF-8
header: Transfer-Encoding: chunked
header: Connection: keep-alive
header: X-Powered-By: PHP/7.0.33
header: Expires: Thu, 19 Nov 1981 08:52:00 GMT
header: Cache-Control: no-store, no-cache, must-revalidate
header: Pragma: no-cache
header: Vary: Accept-Encoding
header: CF-Cache-Status: DYNAMIC
header: cf-request-id: 030d84d2c70000e674798d6200000001
header: Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
header: Server: cloudflare
header: CF-RAY: 59c2a3fe0ce6e674-LHR
header: Content-Encoding: gzip
2020-05-31 19:08:30 matt.local anime_downloader.session[41512] DEBUG uncached request
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG https://dreamanime.fun/anime/watch/189328-penguin-highway-movie-english-sub
2020-05-31 19:08:30 matt.local anime_downloader.sites.helpers.request[41512] DEBUG /var/folders/sy/jcz9n9dn2t98677rzpmyvkr00000gn/T/animedl2ql9w0xf/tmpvp1ors1_
Traceback (most recent call last):
File "/usr/local/bin/anime", line 11, in <module>
load_entry_point('anime-downloader==4.3.0', 'console_scripts', 'anime')()
File "/usr/local/Cellar/anime-downloader/HEAD-16c6268/libexec/lib/python3.8/site-packages/anime_downloader/cli.py", line 53, in main
cli()
File "/usr/local/Cellar/anime-downloader/HEAD-16c6268/libexec/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/local/Cellar/anime-downloader/HEAD-16c6268/libexec/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/Cellar/anime-downloader/HEAD-16c6268/libexec/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/Cellar/anime-downloader/HEAD-16c6268/libexec/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/Cellar/anime-downloader/HEAD-16c6268/libexec/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/Cellar/anime-downloader/HEAD-16c6268/libexec/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/Cellar/anime-downloader/HEAD-16c6268/libexec/lib/python3.8/site-packages/anime_downloader/commands/dl.py", line 112, in command
for episode in animes:
File "/usr/local/Cellar/anime-downloader/HEAD-16c6268/libexec/lib/python3.8/site-packages/anime_downloader/sites/anime.py", line 198, in __iter__
yield episode_class(ep_id[1], parent=self, ep_no=ep_id[0])
File "/usr/local/Cellar/anime-downloader/HEAD-16c6268/libexec/lib/python3.8/site-packages/anime_downloader/sites/anime.py", line 293, in __init__
try_data()
File "/usr/local/Cellar/anime-downloader/HEAD-16c6268/libexec/lib/python3.8/site-packages/anime_downloader/sites/anime.py", line 289, in try_data
self.get_data()
File "/usr/local/Cellar/anime-downloader/HEAD-16c6268/libexec/lib/python3.8/site-packages/anime_downloader/sites/anime.py", line 349, in get_data
self._sources = self._get_sources()
File "/usr/local/Cellar/anime-downloader/HEAD-16c6268/libexec/lib/python3.8/site-packages/anime_downloader/sites/dreamanime.py", line 74, in _get_sources
hosts = json.loads(soup.find("div", {"class":"spatry"}).previous_sibling.previous_sibling.text[21:-2])["videos"]
File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/__init__.py", line 357, in loads
return _default_decoder.decode(s)
File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
matt@matt:~$
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
anyone else having issues with 4anime and dreamanime rn?
dreamanime worked fine just few days ago and now whenever i try to open it i get sent back to the main menu,...
Read more >Studio Dream - Anime News Network
Our Team · Contact us · Staff openings · Privacy policy · Copyright policy · Advertise with ANN · FAQ; Report a Problem;...
Read more >stuck in a dream anime | TikTok Search
Discover short videos related to stuck in a dream anime on TikTok. Explore the latest videos from hashtags: #stuckinadream, #dreamanime, ...
Read more >BanG Dream! (Anime) - TV Tropes
Himari's Fender Jazz bass also suffered from this issue in her very earliest ... and has trouble making friends (plus she's a huge...
Read more >congrats dream! in 2022 - Pinterest
Dream Anime · Just Dream · I'm A Simp · ⚠️Error al Cargar descripción de está historia⚠️ #romance # Romance #....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Found the problem, very bad code. The arbitrary numbers (pic related) gives errors when the JavaScript even has one extra space, hence why I suggested regex even before seeing the logs.
Will push a fix this week when I got more free time.
here we go
edit: corrected!