Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mymusiclist
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Brian Guadalupe
mymusiclist
Commits
4ecf21e6
Commit
4ecf21e6
authored
Nov 19, 2017
by
Deion Menor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify navbar and search result style
parent
9690e6f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
exthook.py
core/exthook.py
+3
-3
No files found.
core/exthook.py
View file @
4ecf21e6
...
@@ -9,11 +9,11 @@ def init():
...
@@ -9,11 +9,11 @@ def init():
musicbrainzngs
.
set_useragent
(
"mymusiclist"
,
"0.1"
,
contact
=
"none"
)
musicbrainzngs
.
set_useragent
(
"mymusiclist"
,
"0.1"
,
contact
=
"none"
)
musicbrainzngs
.
set_rate_limit
(
limit_or_interval
=
False
,
new_requests
=
1
)
musicbrainzngs
.
set_rate_limit
(
limit_or_interval
=
False
,
new_requests
=
1
)
print
(
"[Exthook] Initialized"
)
print
(
"[Exthook] Initialized"
)
def
verifyAlbumArt
(
album
,
artist
):
def
verifyAlbumArt
(
album
,
artist
):
if
(
album
.
art
==
None
):
if
(
album
.
art
==
None
):
album
.
art
=
fetchAlbumArt
(
album
.
album_name
,
artist
)
album
.
art
=
fetchAlbumArt
(
album
.
album_name
,
artist
)
album
.
save
()
album
.
save
()
#may or may not add checks to see if valid http link
#may or may not add checks to see if valid http link
def
fetchAlbumArt
(
name
,
artist
):
def
fetchAlbumArt
(
name
,
artist
):
...
@@ -34,4 +34,4 @@ def fetchAlbumArt(name, artist):
...
@@ -34,4 +34,4 @@ def fetchAlbumArt(name, artist):
return
imagelist
[
'images'
][
0
][
'thumbnails'
][
'large'
]
return
imagelist
[
'images'
][
0
][
'thumbnails'
][
'large'
]
def
debug
(
string
):
def
debug
(
string
):
print
(
"[Exthook] "
+
string
)
print
(
"[Exthook] "
+
string
)
\ No newline at end of file
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