Code Monkey home page Code Monkey logo

acestream_search's People

Contributors

vstavrinov avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

acestream_search's Issues

Script dont working

(venv) PS V:\DEV\Projects\Python\acestream_search\acestream_search> python .\acestream_search.py
Traceback (most recent call last):
File "V:\DEV\Projects\Python\acestream_search\acestream_search\acestream_search.py", line 1, in
from . import version
ImportError: attempted relative import with no known parent package

Not Creating M3U

Upgraded to last version 1.6.1 and I am having this error: Version 1.4.1 was working good. However following versions do not seem to work for me!: Using Acestream ver 3.1.28

#EXTM3U
Traceback (most recent call last):
File "/Users/el/.pyenv/versions/3.9.0/bin/acestream_search", line 8, in
sys.exit(cli())
File "/Users/el/.pyenv/versions/3.9.0/lib/python3.9/site-packages/acestream_search/acestream_search.py", line 334, in cli
for chunk in main(args):
File "/Users/el/.pyenv/versions/3.9.0/lib/python3.9/site-packages/acestream_search/acestream_search.py", line 321, in main
for page in pager(args):
File "/Users/el/.pyenv/versions/3.9.0/lib/python3.9/site-packages/acestream_search/acestream_search.py", line 307, in pager
for item in page:
File "/Users/el/.pyenv/versions/3.9.0/lib/python3.9/site-packages/acestream_search/acestream_search.py", line 252, in convert_json
for channels in get_channels(args):
File "/Users/el/.pyenv/versions/3.9.0/lib/python3.9/site-packages/acestream_search/acestream_search.py", line 241, in get_channels
chunk = fetch_page(args, query)['result']['results']
File "/Users/el/.pyenv/versions/3.9.0/lib/python3.9/site-packages/acestream_search/acestream_search.py", line 168, in fetch_page
return json.loads(urlopen(url).read().decode('utf8'))
File "/Users/el/.pyenv/versions/3.9.0/lib/python3.9/urllib/request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "/Users/el/.pyenv/versions/3.9.0/lib/python3.9/urllib/request.py", line 523, in open
response = meth(req, response)
File "/Users/el/.pyenv/versions/3.9.0/lib/python3.9/urllib/request.py", line 632, in http_response
response = self.parent.error(
File "/Users/el/.pyenv/versions/3.9.0/lib/python3.9/urllib/request.py", line 561, in error
return self._call_chain(*args)
File "/Users/el/.pyenv/versions/3.9.0/lib/python3.9/urllib/request.py", line 494, in _call_chain
result = func(*args)
File "/Users/el/.pyenv/versions/3.9.0/lib/python3.9/urllib/request.py", line 641, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 500: Internal Server Error

EPG XML does not have a closing tag </tv>

Hello, there is a problem when getting the EPG in the request http://localhost:8000/search.m3u?xml_epg=1

<?xml version="1.0" encoding="utf-8" ?>
<tv>
  <channel id="261997">
    <display-name lang="ru">Setanta Live 1 [RU]</display-name>
  </channel>
  <programme start="20230525220000 +0300" stop="20230526000000 +0300" channel="261997">
    <title lang="ru">Футбол. Чемпионат Англии. Премьер-лига. Брайтон энд Хоув Альбион - Манчестер Сити. Прямая трансляция.</title>
  </programme>

I couldn't find the EPG shaper. The request can be terminated without the closing </tv> tag, the data is not usable.

Can't print output to file

I can't print the results directly into a file which would be more practical than copy the terminal output as:
acestream_search > streams.m3u

will output the following error:
Traceback (most recent call last): File "C:\Python310\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Python310\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Python310\Scripts\acestream_search.exe\__main__.py", line 7, in <module> File "C:\Python310\lib\site-packages\acestream_search\acestream_search.py", line 335, in cli print(chunk) File "C:\Python310\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode characters in position 8298-8301: character maps to <undefined>

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.