-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from gpodder/master
update
- Loading branch information
Showing
23 changed files
with
1,292 additions
and
180 deletions.
There are no files selected for viewing
Submodule gpodder-core
updated
14 files
+1 −2 | .travis.yml | |
+1 −1 | LICENSE.ISC | |
+1 −1 | README | |
+1 −1 | bin/gpo | |
+1 −1 | makefile | |
+1 −1 | setup.py | |
+1 −1 | share/man/man1/gpo.1 | |
+5 −5 | src/gpodder/__init__.py | |
+1 −1 | src/gpodder/config.py | |
+1 −1 | src/gpodder/download.py | |
+1 −1 | src/gpodder/model.py | |
+56 −28 | src/gpodder/plugins/soundcloud.py | |
+1 −1 | src/gpodder/plugins/youtube.py | |
+1 −1 | src/gpodder/util.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule gpodder-ui-qml
updated
3 files
+2 −0 | common/GPodderPlayback.qml | |
+11 −1 | main.py | |
+1 −1 | makefile |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
import QtQuick 2.0 | ||
import Sailfish.Silica 1.0 | ||
import Sailfish.Pickers 1.0 | ||
|
||
import 'common' | ||
|
||
Dialog { | ||
id: importOPML | ||
allowedOrientations: Orientation.All | ||
|
||
property string selectedFile: "None" | ||
property string opmlAction: "Import" | ||
|
||
canAccept: { | ||
(opmlAction == 'Import' && selectedFile != "None") || (opmlAction == 'Export' && exportFile.text != '') | ||
} | ||
onAccepted: { | ||
focus = false | ||
if (opmlAction == 'Import') { | ||
py.call('main.import_opml', [importOPML.selectedFile]) | ||
} else { | ||
if(exportFile.text.charAt(0) != '/') { | ||
exportFile.text = StandardPaths.home + '/' + exportFile.text | ||
} | ||
|
||
py.call('main.export_opml', [exportFile.text]) | ||
} | ||
} | ||
|
||
Column { | ||
anchors.fill: parent | ||
|
||
DialogHeader { | ||
title: opmlAction == "Import" ? qsTr("Import OPML File") : qsTr('Export OPML File') | ||
acceptText: opmlAction == "Import" ? qsTr("Import") : qsTr('Export') | ||
} | ||
|
||
ComboBox { | ||
label: "OPML" | ||
|
||
menu: ContextMenu { | ||
MenuItem { | ||
text: qsTr("Import") | ||
onClicked: opmlAction = "Import" | ||
} | ||
MenuItem { | ||
text: qsTr("Export") | ||
onClicked: opmlAction = "Export" | ||
} | ||
} | ||
} | ||
|
||
|
||
ValueButton { | ||
id: importFile | ||
label: qsTr("Import File") | ||
value: selectedFile | ||
onClicked: pageStack.push(filePickerPage) | ||
visible: opmlAction == "Import" ? true : false | ||
} | ||
|
||
TextField { | ||
id: exportFile | ||
label: 'Filename' | ||
placeholderText: qsTr('Enter filname') | ||
visible: opmlAction == 'Export' ? true : false | ||
|
||
anchors { | ||
left: parent.left | ||
right: parent.right | ||
} | ||
EnterKey.enabled: text.length > 0 | ||
EnterKey.iconSource: "image://theme/icon-m-enter-close" | ||
EnterKey.onClicked: importOPML.accept() | ||
} | ||
} | ||
|
||
Component { | ||
id: filePickerPage | ||
FilePickerPage { | ||
nameFilters: [ '*.opml' , '*.opml' ] | ||
onSelectedContentPropertiesChanged: { | ||
importOPML.selectedFile = selectedContentProperties.filePath | ||
} | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.