Skip to content

Commit 87f194f

Browse files
committed
Fixed Crash and updated some screenshots
1 parent a1ecd2e commit 87f194f

File tree

7 files changed

+4
-6
lines changed

7 files changed

+4
-6
lines changed

README.md

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

88
## Screenshots
9-
9+
<img src="assets/GeneralMenu.png" width="400" alt="General Menu">
1010
<img src="assets/menu.png" width="400" alt="Menu">
1111
<img src="assets/StationList.png" width="400" alt="Station List">
1212
<img src="assets/AddingStation.png" width="400" alt="Adding Station">
13-
<img src="assets/Backup.png" width="400" alt="Backup">
1413

1514
## Features
1615

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)