Skip to content

Commit 6822c5c

Browse files
authored
Merge branch 'master' into README
2 parents e27b610 + 87f194f commit 6822c5c

File tree

7 files changed

+10
-4
lines changed

7 files changed

+10
-4
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@ A GNOME Shell extension for listening to internet radio stations directly from y
77
This extension uses [Radio Browser](https://www.radio-browser.info/)'s API to fetch radio urls and play them using
88
gstreamer (Usually being installed with GNOME).
99

10+
11+
## Screenshots
12+
<img src="assets/GeneralMenu.png" width="400" alt="General Menu">
13+
<img src="assets/menu.png" width="400" alt="Menu">
14+
<img src="assets/StationList.png" width="400" alt="Station List">
15+
<img src="assets/AddingStation.png" width="400" alt="Adding Station">
16+
1017
## Features
1118

1219
- Play internet radio stations from the panel menu

assets/AddingStation.png

-3 KB
Loading

assets/Backup.png

-26.8 KB
Binary file not shown.

assets/GeneralMenu.png

53.1 KB
Loading

assets/StationList.png

17.3 KB
Loading

[email protected]/extension.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ import { createScrollableSection, createStationMenuItem, refreshStationsMenu } f
1313
import PlaybackManager from './modules/playbackManager.js';
1414
import { setupMediaKeys, cleanupMediaKeys } from './modules/mediaKeys.js';
1515

16-
initTranslations(_);
17-
1816
const Indicator = GObject.registerClass(
1917
class Indicator extends PanelMenu.Button {
2018
_init(stations, openPrefs, extensionPath, settings) {
@@ -183,6 +181,7 @@ const Indicator = GObject.registerClass(
183181

184182
export default class YetAnotherRadioExtension extends Extension {
185183
enable() {
184+
initTranslations(_);
186185
ensureStorageFile();
187186
const stations = loadStations();
188187

[email protected]/modules/playbackManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ export default class PlaybackManager {
3232
nowPlaying: null,
3333
playbackState: 'stopped'
3434
};
35-
36-
this._initGst();
3735
}
3836

3937
_initGst() {
@@ -57,6 +55,8 @@ export default class PlaybackManager {
5755
_ensurePlayer() {
5856
if (this._player) return;
5957

58+
this._initGst();
59+
6060
this._player = Gst.ElementFactory.make('playbin', 'radio-player');
6161
if (!this._player) {
6262
throw new Error('GStreamer playbin plugin missing');

0 commit comments

Comments
 (0)