Diff
Differences From Artifact [4a4e01489e]:
- File channels/__init__.py — part of check-in [ea924e3c27] at 2017-01-05 21:23:23 on branch trunk — Introduce FeaturePlugin as new base class for channels and all other plugins. Pre-defines the meta, module attributes and calls init2(). (user: mario, size: 32496) [annotate] [blame] [check-ins using]
To Artifact [e9d8c94f99]:
- File channels/__init__.py — part of check-in [f48ad79aa1] at 2017-01-05 21:33:50 on branch trunk — Fix `links` plugin format: attribute; make it understood by channel.play() that a homepage-only row triggers the web browser. (user: mario, size: 32611) [annotate] [blame] [check-ins using]
600 601 602 603 604 605 606 607 608 609 610 611 612 613 | 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 | + + | row = self.row() if row and "url" in row: # playlist and audio type audioformat = row.get("format", self.audioformat) listformat = row.get("listformat", self.listformat) # invoke audio player action.play(row, audioformat, listformat) elif row.get("homepage") and row.get("format") == "text/html": action.browser(row["homepage"]) else: self.status("No station selected for playing.") return row # Start streamripper/youtube-dl/etc def record(self): row = self.row() |