Code Monkey home page Code Monkey logo

wco-dl's People

Contributors

animedevops avatar iiepic avatar ryanhiller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wco-dl's Issues

New Website URL

Hey, the wcostream website now redirects to .tv no matter what you enter in, so the script is getting 403 errors again. I tried to update it myself but I don't really know how.

The new url is https://www.wcostream.tv/

Python3.5 - Episode Range not working

If you are using Python3.5 then you may run into the following error when trying to get an episode range.

Error: TypeError: '_sre.SRE_Match' object is not subscriptable

It is found in the following lines: (Lifter.py, line 141)

File "/home/iepic/projects/wco-dl/Lifter.py", line 141, in <listcomp>
  matching = [s for s in links for i in episodes if i == re.search(r'episode-\d+', s)[0]]

I am currently aware of this bug and I'm trying to fix it. If you have any suggestions I am welcome to all ideas.

TypeError: must be str, not bytes

The error:

Traceback (most recent call last):
  File "C:\Users\ingwi\anime\wco-dl\__main__.py", line 13, in <module>
    class Main:
  File "C:\Users\ingwi\anime\wco-dl\__main__.py", line 119, in Main
    Lifter(url=args.input[0].replace('https://wcostream.com', 'https://www.wcostream.com'), resolution=args.highdef, logger=logger, season=args.season,
  File "C:\Users\ingwi\anime\wco-dl\Lifter.py", line 62, in __init__
    self.download_show(url)
  File "C:\Users\ingwi\anime\wco-dl\Lifter.py", line 265, in download_show
    source_url, backup_url = self.find_download_link(item)
  File "C:\Users\ingwi\anime\wco-dl\Lifter.py", line 109, in find_download_link
    return self.get_download_url(hidden_url)
  File "C:\Users\ingwi\anime\wco-dl\Lifter.py", line 349, in get_download_url
    backup_match = stream_pattern.search(html[html.find(b'jw.onError'):])
TypeError: must be str, not bytes

The command: python.exe .\__main__.py -i "https://www.wcostream.com/anime/jojo-s-bizarre-adventure-phantom-blood-english-dubbed"

Python version: 3.9.5
Platform: Windows 10

Sadly, I am not very good at python so this trace doesn't tell me a whole lot about the arguments being passed around so all I can do is leave this with you. :)

Have a nice day!

Downloads not working

I'm not able to get either executable to work on neither my main computer or my laptop. When attempting to download anything, I just get an error "Download for (videoname here) did not complete, please try again." Both systems are Windows 10

Looking in the error logs I get nothing that shows an error being thrown.

Was unable to get the script to run at all on Kali. The error there is that 'requests' isn't recognized and I was unable to get that installed.

On Ubuntu I get the following traceback:

Traceback (most recent call last):
File "./main.py", line 11, in
class Main():
File "./main.py", line 65, in Main
Lifter(url=args.input[0], resolution=args.highdef, logger=logger, season=args.season,
File "/home/brin/Downloads/wco-dl-2020-01-27/Lifter.py", line 43, in init
self.download_show(url, season, ep_range, exclude, output)
File "/home/brin/Downloads/wco-dl-2020-01-27/Lifter.py", line 147, in download_show
download_url = self.find_download_link(item)
File "/home/brin/Downloads/wco-dl-2020-01-27/Lifter.py", line 85, in find_download_link
ending_number = int(re.search(' - ([0-9]+)', script_url).group(1))
AttributeError: 'NoneType' object has no attribute 'group'

I followed the directions to the letter multiple times and I can't get this to work. I'm at a lost for what I'm doing wrong.

Directory not Found

When choosing a directory to save to, script fails if directory does not already exist. Script should:
check for path
if not exist, create it
elseif exist, use it

Could default to .\output\show name if no input given

wcostream includes FHD (1080p) quality

It is not true that wcostream only has 480p and 720p. There are some newer videos that have 1080p. One example is Bluey s3e47, Cricket. It has an option for FHD, which is 1080p. It should be possible to select any quality, even if it's not an option (it'll try to get the next quality if it can't find the one specified).

Episode range not working?

Hi, I first off want to thank you for the great program. It seems I'm having an issue when it comes to downloading an episode range. (I also want to preface that I know hardly anything about this kind of stuff so please bare with me... haha).

PS D:\Downloads\wco-dl-2020-11-10> ._main_.exe -i https://www.wcostream.com/anime/one-piece-english-dubbed-guide -x specials,movies -epr 1-574
Settings Loaded.
Downloading show
Traceback (most recent call last):
File "main.py", line 12, in
class Main:
File "main.py", line 73, in Main
Lifter(url=args.input[0], resolution=args.highdef, logger=logger, season=args.season,
File "Lifter.py", line 52, in init
self.download_show(url)
File "Lifter.py", line 166, in download_show
range(int(ep_range.split('-')[0]), int(ep_range.split('-')[1]) + 1)]
AttributeError: 'list' object has no attribute 'split'
[18600] Failed to execute script main

Any ideas why this may not be working?

32-bit and plaintext code in the year 2020...

I have 64Gb of ram but cannot utilize it all with your compiled script because it is compiled as x32. I also have to wonder exactly how many precision points are being lost in translation due to the 32-bit limiter. I mean... why not just make it 8-bit at this point?!

Aside from that, the default save location would be helpful to know without delving into the code.

Also, obfuscated code would be cool... imagine... a code that reads 100% as base64... the most unbreakable code in the city of Snail-Villa Arizona.

Unable to download - backup url

I'm trying to download a video and I'm encountering an error that is preventing it from downloading. It reports that it's missing a positional argument backup url.

Downloading single
Traceback (most recent call last):
  File "__main__.py", line 12, in <module>
  File "__main__.py", line 89, in Main
  File "Lifter.py", line 60, in __init__
  File "Lifter.py", line 136, in download_single
TypeError: __init__() missing 1 required positional argument: 'backup_url'
[6584] Failed to execute script __main__

directories with "/" instead of "\" make script sad [Win10]

Tabbing out a folder name in windows uses this format "./something/or/another"
When using this format, the script fails as it wants the slashes in this format ".\likes\this\better"

If app autopulled/made the foldername from the show name I would have no reason to post ever again...
until next time.

Error during download

Hi, thanks for writing this script

I'm trying to download spongebob for the kids, I've installed the most recent version of your script. It downloads the most recent episode then shows this error?

Traceback (most recent call last):
File "main.py", line 12, in
File "main.py", line 73, in Main
File "Lifter.py", line 52, in init
File "Lifter.py", line 178, in download_show
IndexError: list index out of range
[26064] Failed to execute script main

Thank you!

Passthrough is not supported, GL is Disabled, ANGLE is

Subject : [4448:0808/150018.119:ERROR:gpu_init.cc(446)] Passthrough is not supported, GL is disabled, ANGLE is

Command Line Arguments You Gave : main.py -i "https://www.wcostream.com/rick-and-morty-season-5-episode-10-rickmurai-jack" -o "../shows/"

Verbose Log Link : Does not generate an error log when using -v or --verbose

Long Explanation : Downloaded zip, ensured python installed to command line, pre-requisites installed, install directory not protected. Help online suggests enabling WebGL in chrome flags. Tried this but produced same result. Another suggestion for using the flags "–headless", "–disable-gpu" and "–disable-software-rasterizer" but to no avail. Any ideas why I'm getting this or what can be done to fix it?

[WinError 123] The filename, directory name, or volume label syntax is incorrect

Subject : [WinError 123] The filename, directory name, or volume label syntax is incorrect

Command Line Arguments You Gave : wco-dl.exe -i "https://www.wcostream.com/anime/cardfight-vanguard-2011"

Verbose Log Link : Error Log.txt.

Long Explanation : i think for some reason it's trying to name the files styarting with "http:" with gives an error


> F:\1>wco-dl.exe -i "https://www.wcostream.com/anime/cardfight-vanguard-2011" --verbose
> Settings Loaded.
> Downloads Loaded.
> 
> Downloading show
> Traceback (most recent call last):
>   File "__main__.py", line 12, in <module>
>     class Main:
>   File "__main__.py", line 89, in Main
>     Lifter(url=args.input[0].replace('https://wcostream.com', 'https://www.wcostream.com'), resolution=args.highdef, logger=logger, season=args.season,
>   File "Lifter.py", line 56, in __init__
>     self.download_show(url)
>   File "Lifter.py", line 196, in download_show
>     output = self.check_output(show_info[0])
>   File "Lifter.py", line 74, in check_output
>     os.makedirs(output_directory)
>   File "os.py", line 211, in makedirs
>   File "os.py", line 211, in makedirs
>   File "os.py", line 221, in makedirs
> OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'F:\\1\\Output\\Https:'
> [6696] Failed to execute script __main__
> 

wouldn't download

Subject : downloading show
Traceback (most recent call last):
File "main.py", line 11, in
File "main.py", line 65, in Main
File "Lifter.py", line 43, in init
File "Lifter.py", line 140, in download_show
IndexError: list index out of range
[15808] Failed to execute script main

Command Line Arguments You Gave : C:\Users\HP\Downloads>wco-dl-64.exe -i "https://www.wcostream.com/anime/shaun-the-sheep" -epr 8 -v

Verbose Log Link : https://pastebin.com/Yw9gsMKU

Long Explanation : i was trying to download this show it got to episode 7 then failed so i tried getting episode 8 on its own but it failed
Error Log.log

download for x did not complete, please try again

Firstly thanks for this awesome tool. secondly, I was testing how it works with a specific page for anime that came to my mind Sword Art Online.

For some reason with the first season it error with

python .\src\__main__.py -i https://www.wcostream.com/anime/sword-art-online
Settings Loaded.
Downloading show
[wco-dl] - Downloading Sword-Art-Online-Extra-Edition-English-Dubbed-2-S01E00-
0it [00:00, ?it/s]
[wco-dl] - Download for Sword-Art-Online-Extra-Edition-English-Dubbed-2-S01E00- did not complete, please try again.

[wco-dl] - Downloading Sword Art Online-S01E25-English Dubbed 2
[wco-dl] - Download for Sword Art Online-S01E25-English Dubbed 2 did not complete, please try again.

I spent ages going through the code could not work out why it was failing, then went to issues and could see people were trying other stuff so I tried SAO 2 and it worked perfectly, so not sure why it's failing on a specific page after much testing it's the only one I can find that has that problem.

tried again

i got here by tring to download the whole series. got to 39 and then stopped so i tried 40 individually
my command was:
C:\Users\HP\Downloads>wco-dl-64.exe -i "https://www.wcostream.com/anime/shaun-the-sheep" -epr 40-40 -v
this was the result:
downloading show
Traceback (most recent call last):
File "main.py", line 11, in
File "main.py", line 65, in Main
File "Lifter.py", line 43, in init
File "Lifter.py", line 141, in download_show
File "Lifter.py", line 141, in
TypeError: 'NoneType' object is not subscriptable
[20500] Failed to execute script main

and here is the error log generated: https://pastebin.com/XpwjuUu7

here is the details from trying to download the series https://pastebin.com/ddJeJCcc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.