Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Sublime Music
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
117
Issues
117
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
2
Merge Requests
2
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sublime Music
Sublime Music
Commits
5f2b884c
Verified
Commit
5f2b884c
authored
Oct 12, 2020
by
Sumner Evans
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Closes
#264
: Fix issue where getting ignored articles doesn't work in supysonic
parent
b93be94b
Pipeline
#201585536
passed with stages
in 12 minutes and 16 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
sublime_music/adapters/subsonic/adapter.py
sublime_music/adapters/subsonic/adapter.py
+8
-4
No files found.
sublime_music/adapters/subsonic/adapter.py
View file @
5f2b884c
...
...
@@ -641,15 +641,19 @@ class SubsonicAdapter(Adapter):
return
artist
def
get_ignored_articles
(
self
)
->
Set
[
str
]:
ignored_articles
=
""
ignored_articles
=
"
The El La Los Las Le Les
"
try
:
# If we already got the ignored articles from the get_artists, do that here.
with
open
(
self
.
ignored_articles_cache_file
,
"rb+"
)
as
f
:
ignored_articles
=
pickle
.
load
(
f
)
except
Exception
:
# Whatever the exception, fall back on getting from the server.
if
artists
:
=
self
.
_get_json
(
self
.
_make_url
(
"getArtists"
)).
artists
:
ignored_articles
=
artists
.
ignored_articles
try
:
# Whatever the exception, fall back on getting from the server.
if
artists
:
=
self
.
_get_json
(
self
.
_make_url
(
"getArtists"
)).
artists
:
ignored_articles
=
artists
.
ignored_articles
except
Exception
:
# Use the default ignored articles.
pass
return
set
(
ignored_articles
.
split
())
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment