Giter Club home page Giter Club logo

py-radio's People

Contributors

dependabot[bot] avatar pinetrax avatar tim-we avatar

Watchers

 avatar  avatar  avatar  avatar

py-radio's Issues

Pause button does not work :(

Tim, please fix. I want to pause my meme songs to play meme songs that are not on the py, but on my phone, but instead it just skips =( TIM FIX OR I WANT A REFUND
Sincerely,
Josh from Microsoft Tech Support

Double clip avoidance not working

image

Either

py-radio/radio/library.py

Lines 92 to 105 in 133cc3b

def next(self) -> str:
assert not self.empty(), "Cannot pick clip from empty pool"
# find a clip that is not in the recent history
idx = random.randrange(0, len(self.clips))
while idx in self._history:
idx = random.randrange(0, len(self.clips))
# add to recent history
self._history.append(idx)
if len(self._history) > self._history_len:
del self._history[0]
return self.clips[idx]
is not working or _history_len has an incorrect value.

Telegram Bot potentially causing problems

Traceback (most recent call last):
  File "/home/pi/py-radio/.venv/lib/python3.7/site-packages/telegram/ext/updater.py", line 379, in _network_loop_retry
    if not action_cb():
  File "/home/pi/py-radio/.venv/lib/python3.7/site-packages/telegram/ext/updater.py", line 340, in polling_action_cb
    allowed_updates=allowed_updates)
  File "/home/pi/py-radio/.venv/lib/python3.7/site-packages/decorator.py", line 232, in fun
    return caller(func, *(extras + args), **kw)
  File "/home/pi/py-radio/.venv/lib/python3.7/site-packages/telegram/bot.py", line 67, in decorator
    result = func(*args, **kwargs)
  File "/home/pi/py-radio/.venv/lib/python3.7/site-packages/telegram/bot.py", line 2138, in get_updates
    result = self._request.post(url, data, timeout=float(read_latency) + float(timeout))
  File "/home/pi/py-radio/.venv/lib/python3.7/site-packages/telegram/utils/request.py", line 333, in post
    **urlopen_kwargs)
  File "/home/pi/py-radio/.venv/lib/python3.7/site-packages/telegram/utils/request.py", line 230, in _request_wrapper
    raise NetworkError('urllib3 HTTPError {}'.format(error))
telegram.error.NetworkError: urllib3 HTTPError HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot##########:##################################/getUpdates (Caused by NewConnectionError('<telegram.vendor.ptb_urllib3.urllib3.connection.VerifiedHTTPSConnection object at 0x6c599110>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))

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.