Skip to content

Commit

Permalink
Merge pull request #191 from Keeper-of-the-Keys/setting-downloads
Browse files Browse the repository at this point in the history
Setting downloads
  • Loading branch information
Keeper-of-the-Keys authored May 21, 2024
2 parents be4c00f + edc5873 commit a1f732d
Show file tree
Hide file tree
Showing 11 changed files with 141 additions and 82 deletions.
2 changes: 1 addition & 1 deletion gpodder-core
14 changes: 14 additions & 0 deletions qml/SettingsPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,16 @@ Page {
py.getConfig('ui.qml.playback_speed.maximumValue', function (value) {
speed_max.text = value;
});
py.getConfig('fs.downloads', function (value) {
downloads_folder.text = value;
});
} else if (status === PageStatus.Deactivating) {
py.setConfig('plugins.youtube.api_key_v3', youtube_api_key_v3.text);
py.setConfig('limit.episodes', parseInt(limit_episodes.value));
py.setConfig('ui.qml.playback_speed.stepSize', parseFloat(speed_increment.value));
py.setConfig('ui.qml.playback_speed.minimumValue', parseFloat(speed_min.text));
py.setConfig('ui.qml.playback_speed.maximumValue', parseFloat(speed_max.text));
py.setConfig('fs.downloads', downloads_folder.text);
youtube_api_key_v3.focus = false;
}
}
Expand Down Expand Up @@ -146,6 +150,16 @@ Page {
top: 5
}
}

TextField {
id: downloads_folder
label: qsTr("Path for storing podcast data - requires restart")
placeholderText: label
width: parent.width
inputMethodHints: Qt.ImhNoPredictiveText
EnterKey.iconSource: (text.length > 0) ? "image://theme/icon-m-enter-accept" : "image://theme/icon-m-enter-close"
EnterKey.onClicked: focus = false
}
}
}
}
23 changes: 14 additions & 9 deletions translations/harbour-org.gpodder.sailfish-bg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -508,50 +508,55 @@
<context>
<name>SettingsPage</name>
<message>
<location filename="../qml/SettingsPage.qml" line="65"/>
<location filename="../qml/SettingsPage.qml" line="69"/>
<source>About</source>
<translation>Относно</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="75"/>
<location filename="../qml/SettingsPage.qml" line="79"/>
<source>Settings</source>
<translation>Настройки</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="79"/>
<location filename="../qml/SettingsPage.qml" line="83"/>
<source>YouTube</source>
<translation>YouTube</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="85"/>
<location filename="../qml/SettingsPage.qml" line="89"/>
<source>API Key (v3)</source>
<translation>API ключ (v3)</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="94"/>
<location filename="../qml/SettingsPage.qml" line="98"/>
<source>Limits</source>
<translation>Ограничения</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="100"/>
<location filename="../qml/SettingsPage.qml" line="104"/>
<source>Maximum episodes per feed</source>
<translation>Максимален брой епизоди за RSS емисия</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="110"/>
<location filename="../qml/SettingsPage.qml" line="114"/>
<source>Speed increments</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="120"/>
<location filename="../qml/SettingsPage.qml" line="124"/>
<source>Playback speed - lower limit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="136"/>
<location filename="../qml/SettingsPage.qml" line="140"/>
<source>Playback speed - upper limit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="156"/>
<source>Path for storing podcast data - requires restart</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SleepTimerDialog</name>
Expand Down
23 changes: 14 additions & 9 deletions translations/harbour-org.gpodder.sailfish-de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,50 +507,55 @@
<context>
<name>SettingsPage</name>
<message>
<location filename="../qml/SettingsPage.qml" line="65"/>
<location filename="../qml/SettingsPage.qml" line="69"/>
<source>About</source>
<translation>Über</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="75"/>
<location filename="../qml/SettingsPage.qml" line="79"/>
<source>Settings</source>
<translation>Einstellungen</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="79"/>
<location filename="../qml/SettingsPage.qml" line="83"/>
<source>YouTube</source>
<translation>YouTube</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="85"/>
<location filename="../qml/SettingsPage.qml" line="89"/>
<source>API Key (v3)</source>
<translation>API Schlüssel (v3)</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="94"/>
<location filename="../qml/SettingsPage.qml" line="98"/>
<source>Limits</source>
<translation>Grenzen</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="100"/>
<location filename="../qml/SettingsPage.qml" line="104"/>
<source>Maximum episodes per feed</source>
<translation>Maximale Anzahl Episoden pro Feed</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="110"/>
<location filename="../qml/SettingsPage.qml" line="114"/>
<source>Speed increments</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="120"/>
<location filename="../qml/SettingsPage.qml" line="124"/>
<source>Playback speed - lower limit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="136"/>
<location filename="../qml/SettingsPage.qml" line="140"/>
<source>Playback speed - upper limit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="156"/>
<source>Path for storing podcast data - requires restart</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SleepTimerDialog</name>
Expand Down
23 changes: 14 additions & 9 deletions translations/harbour-org.gpodder.sailfish-es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,50 +507,55 @@
<context>
<name>SettingsPage</name>
<message>
<location filename="../qml/SettingsPage.qml" line="65"/>
<location filename="../qml/SettingsPage.qml" line="69"/>
<source>About</source>
<translation>Acerca de</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="75"/>
<location filename="../qml/SettingsPage.qml" line="79"/>
<source>Settings</source>
<translation>Ajustes</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="79"/>
<location filename="../qml/SettingsPage.qml" line="83"/>
<source>YouTube</source>
<translation>YouTube</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="85"/>
<location filename="../qml/SettingsPage.qml" line="89"/>
<source>API Key (v3)</source>
<translation>Clave API (v3)</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="94"/>
<location filename="../qml/SettingsPage.qml" line="98"/>
<source>Limits</source>
<translation>Límites</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="100"/>
<location filename="../qml/SettingsPage.qml" line="104"/>
<source>Maximum episodes per feed</source>
<translation>Núm. máximo de episodios por canal</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="110"/>
<location filename="../qml/SettingsPage.qml" line="114"/>
<source>Speed increments</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="120"/>
<location filename="../qml/SettingsPage.qml" line="124"/>
<source>Playback speed - lower limit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="136"/>
<location filename="../qml/SettingsPage.qml" line="140"/>
<source>Playback speed - upper limit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="156"/>
<source>Path for storing podcast data - requires restart</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SleepTimerDialog</name>
Expand Down
23 changes: 14 additions & 9 deletions translations/harbour-org.gpodder.sailfish-it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,50 +507,55 @@
<context>
<name>SettingsPage</name>
<message>
<location filename="../qml/SettingsPage.qml" line="65"/>
<location filename="../qml/SettingsPage.qml" line="69"/>
<source>About</source>
<translation>Info</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="75"/>
<location filename="../qml/SettingsPage.qml" line="79"/>
<source>Settings</source>
<translation>Impostazioni</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="79"/>
<location filename="../qml/SettingsPage.qml" line="83"/>
<source>YouTube</source>
<translation>YouTube</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="85"/>
<location filename="../qml/SettingsPage.qml" line="89"/>
<source>API Key (v3)</source>
<translation>API Key (v3)</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="94"/>
<location filename="../qml/SettingsPage.qml" line="98"/>
<source>Limits</source>
<translation>Limiti</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="100"/>
<location filename="../qml/SettingsPage.qml" line="104"/>
<source>Maximum episodes per feed</source>
<translation>Massimo episodi per feed</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="110"/>
<location filename="../qml/SettingsPage.qml" line="114"/>
<source>Speed increments</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="120"/>
<location filename="../qml/SettingsPage.qml" line="124"/>
<source>Playback speed - lower limit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="136"/>
<location filename="../qml/SettingsPage.qml" line="140"/>
<source>Playback speed - upper limit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="156"/>
<source>Path for storing podcast data - requires restart</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SleepTimerDialog</name>
Expand Down
23 changes: 14 additions & 9 deletions translations/harbour-org.gpodder.sailfish-pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,50 +507,55 @@
<context>
<name>SettingsPage</name>
<message>
<location filename="../qml/SettingsPage.qml" line="65"/>
<location filename="../qml/SettingsPage.qml" line="69"/>
<source>About</source>
<translation>O gPodder</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="75"/>
<location filename="../qml/SettingsPage.qml" line="79"/>
<source>Settings</source>
<translation>Ustawienia</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="79"/>
<location filename="../qml/SettingsPage.qml" line="83"/>
<source>YouTube</source>
<translation>YouTube</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="85"/>
<location filename="../qml/SettingsPage.qml" line="89"/>
<source>API Key (v3)</source>
<translation>Klucz API (v3)</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="94"/>
<location filename="../qml/SettingsPage.qml" line="98"/>
<source>Limits</source>
<translation>Limity</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="100"/>
<location filename="../qml/SettingsPage.qml" line="104"/>
<source>Maximum episodes per feed</source>
<translation>Maksymalna liczba odcinków na kanał</translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="110"/>
<location filename="../qml/SettingsPage.qml" line="114"/>
<source>Speed increments</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="120"/>
<location filename="../qml/SettingsPage.qml" line="124"/>
<source>Playback speed - lower limit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="136"/>
<location filename="../qml/SettingsPage.qml" line="140"/>
<source>Playback speed - upper limit</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../qml/SettingsPage.qml" line="156"/>
<source>Path for storing podcast data - requires restart</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>SleepTimerDialog</name>
Expand Down
Loading

0 comments on commit a1f732d

Please sign in to comment.