[rhythmbox: 6/8] Minor code cleanup
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox: 6/8] Minor code cleanup
- Date: Sun, 1 Sep 2019 20:59:25 +0000 (UTC)
commit 81f6cab51ab127d740dbc1f405cb3adea7b02310
Author: Philipp Wolfer <phil parolu io>
Date: Thu Apr 11 15:19:34 2019 +0200
Minor code cleanup
plugins/listenbrainz/listenbrainz.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/plugins/listenbrainz/listenbrainz.py b/plugins/listenbrainz/listenbrainz.py
index 63715d338..7b99e4fb6 100644
--- a/plugins/listenbrainz/listenbrainz.py
+++ b/plugins/listenbrainz/listenbrainz.py
@@ -1,4 +1,4 @@
-# Copyright (c) 2018 Philipp Wolfer <ph wolfer gmail com>
+# Copyright (c) 2018-2019 Philipp Wolfer <ph wolfer gmail com>
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
@@ -188,7 +188,7 @@ def _entry_to_track(entry):
}
entry_type = entry.get_entry_type().get_name()
- if (entry_type != "song" and not entry_type.startswith("audiocd")):
+ if entry_type != "song" and not entry_type.startswith("audiocd"):
additional_info["source"] = _cleanup_source(entry_type)
return Track(artist, title, album, additional_info)
@@ -200,7 +200,7 @@ def _validate_mbid(mbid):
def _cleanup_source(source):
if source.startswith("grilo:grl-"):
- source = source[10:]
+ return source[10:]
return source
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]