Changeset - e13b62bfdaff
[Not reviewed]
default
0 4 0
drewp@bigasterisk.com - 20 months ago 2023-05-18 02:34:12
drewp@bigasterisk.com
fix some warnings
4 files changed with 6 insertions and 4 deletions:
0 comments (0 inline, 0 general)
light9/ascoltami/main.py
Show inline comments
 
@@ -13,7 +13,7 @@ from twisted.internet.interfaces import 
 
gi.require_version('Gst', '1.0')
 
gi.require_version('Gtk', '3.0')
 

	
 
from gi.repository import GObject, Gst
 
from gi.repository import Gst # type: ignore
 
from light9 import networking, showconfig
 
from light9.ascoltami.player import Player
 
from light9.ascoltami.playlist import NoSuchSong, Playlist
light9/ascoltami/musictime_client.py
Show inline comments
 
@@ -30,6 +30,7 @@ class MusicTime(object):
 
        make up times between the samples, and we'll just run off the
 
        end of a song)
 
        """
 
        self.positionFetchTime = 0
 
        self.period = period
 
        self.hoverPeriod = .05
 
        self.onChange = onChange
light9/ascoltami/player.py
Show inline comments
 
@@ -4,7 +4,7 @@ alternate to the mpd music player, for a
 
"""
 

	
 
import time, logging, traceback
 
from gi.repository import Gst
 
from gi.repository import Gst # type: ignore
 
from twisted.internet import task
 
from light9.metrics import metrics
 
log = logging.getLogger()
light9/ascoltami/playlist.py
Show inline comments
 
@@ -11,6 +11,7 @@ class Playlist(object):
 

	
 
    def __init__(self, graph, playlistUri):
 
        self.graph = graph
 
        self.playlistUri = playlistUri
 
        self.songs = list(graph.items(playlistUri))
 

	
 
    def nextSong(self, currentSong):
 
@@ -47,8 +48,8 @@ class Playlist(object):
 
        # maybe that function should be moved to this method
 

	
 
    @classmethod
 
    def fromShow(playlistClass, graph, show):
 
    def fromShow(cls, graph, show):
 
        playlistUri = graph.value(show, L9['playList'])
 
        if not playlistUri:
 
            raise ValueError("%r has no l9:playList" % show)
 
        return playlistClass(graph, playlistUri)
 
        return cls(graph, playlistUri)
0 comments (0 inline, 0 general)