Code Monkey home page Code Monkey logo

Comments (3)

raymonddong avatar raymonddong commented on June 20, 2024

Another weird title I found that fails is
5-toubun no Hanayome∽
Tho different error

Search MyAnimeList for anime in Season? (y|n):

n
Search: hanayome
Add another search: (y|n)
n

Current: hanayome
[1] Seto No Hanayome
[2] Gotoubun no Hanayome
[3] Seto No Hanayome Ova
[4] 5-toubun no Hanayome 2
[5] 5-toubun no Hanayome∽
[6] 5-toubun no Hanayome Movie
[7] Ranma 1/2: Nihao my Concubine
[8] Detective Conan Movie 25: Halloween no Hanayome
[9] UFO Ultramaiden Valkyrie 3: Bride of Celestial Souls` Day
[10] Crayon Shin-chan Movie 18: Chou Jikuu! Arashi wo Yobu Ora no Hanayome
Enter Number: 5
Episode (Range with '-') [1-1]

1


Downloading: 5-toubun no Hanayome∽ EP: 1 - hls
Traceback (most recent call last):
File "C:\Users\raymo\Documents\GitHub\anipy-cli\anipy_cli.py", line 14, in
main()
File "C:\Users\raymo\Documents\GitHub\anipy-cli\anipy_cli.py", line 8, in main
cli.run_cli()
File "C:\Users\raymo\Documents\GitHub\anipy-cli\anipy_cli\cli\cli.py", line 37, in run_cli
cli_class(options=args, rpc_client=rpc_client).run()
File "C:\Users\raymo\Documents\GitHub\anipy-cli\anipy_cli\cli\clis\base_cli.py", line 36, in run
self.process()
File "C:\Users\raymo\Documents\GitHub\anipy-cli\anipy_cli\cli\clis\download_cli.py", line 86, in process
download(entry, self.options.quality, self.options.ffmpeg).download()
File "C:\Users\raymo\Documents\GitHub\anipy-cli\anipy_cli\download.py", line 94, in download
self.multithread_m3u8_dl()
File "C:\Users\raymo\Documents\GitHub\anipy-cli\anipy_cli\download.py", line 301, in multithread_m3u8_dl
input_file = self._dump_m3u8(self._m3u8_content)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\raymo\Documents\GitHub\anipy-cli\anipy_cli\download.py", line 398, in _dump_m3u8
content.dump(filename)
File "C:\Users\raymo\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\m3u8\model.py", line 371, in dump
fileobj.write(self.dumps())
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.496.0_x64__qbz5n2kfra8p0\Lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeEncodeError: 'charmap' codec can't encode character '\u223d' in position 153: character maps to

from anipy-cli.

DragonOfShuu avatar DragonOfShuu commented on June 20, 2024

Okay, so basically it looks like anipy-cli is trying to save the file as the exact name for the anime, but some OS's don't support the characters being written (tab key, or tilda). I'll go ahead and see if I can fix it and make a pull request if I can. Thanks for the highlight!

from anipy-cli.

sdaqo avatar sdaqo commented on June 20, 2024

Okay, so basically it looks like anipy-cli is trying to save the file as the exact name for the anime, but some OS's don't support the characters being written (tab key, or tilda). I'll go ahead and see if I can fix it and make a pull request if I can. Thanks for the highlight!

That would be nice. We already have a function that takes care of cleaning filenames in download.py. what you could do is to get rid of Unicode chars by encoding it to ASCII, something like that :encode("ascii", "ignore"). I would do it but currently not at home and editing with my phone is no fun.

from anipy-cli.

Related Issues (20)

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.