Om-Thorat / Term-Spotify

Spotify controls in the terminal, A demo app.
MIT License
14 stars 1 forks source link

raise BadWidgetName( textual.widget.BadWidgetName: Widget subclass 'nowplaying' should be capitalised or start with '_'. #4

Open fontrendererobj opened 3 months ago

fontrendererobj commented 3 months ago

raise BadWidgetName( textual.widget.BadWidgetName: Widget subclass 'nowplaying' should be capitalised or start with '_'.

fontrendererobj commented 3 months ago

when starting app.py

Om-Thorat commented 2 months ago

Should be fixed now, Can you check?

fontrendererobj commented 2 months ago

nope ╭───────────────────────────────────────── Traceback (most recent call last) ──────────────────────────────────────────╮ │ C:\Users\joyce\Desktop\Term-Spotify-main\app.py:17 in update_song │ │ │ │ 14 │ │ self.set_interval(1 / 60, self.update_song) │ │ 15 │ │ │ 16 │ def update_song(self): │ │ ❱ 17 │ │ self.song = pl.getdata() │ │ 18 │ │ │ 19 │ def watch_song(self): │ │ 20 │ │ self.update(f"Now Playing {self.song}") │ │ │ │ ╭──────────── locals ────────────╮ │ │ │ self = Nowplaying(id='status') │ │ │ ╰────────────────────────────────╯ │ │ │ │ C:\Users\joyce\Desktop\Term-Spotify-main\api.py:38 in getdata │ │ │ │ 35 │ │ │ 36 │ def getdata(self): │ │ 37 │ │ self.proc.stdin.write("getdata\n") │ │ ❱ 38 │ │ self.proc.stdin.flush() │ │ 39 │ │ return self.proc.stdout.readline() │ │ 40 │ │ 41 if name == "main": │ │ │ │ ╭───────────────────── locals ─────────────────────╮ │ │ │ self = <api.Player object at 0x00000244B346E630> │ │ │ ╰──────────────────────────────────────────────────╯ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ OSError: [Errno 22] Invalid argument

NOTE: 1 of 2 errors shown. Run with textual run --dev to see all errors.