Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gnu-fm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
16
Issues
16
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gnu.io
gnu-fm
Commits
f047dbfa
Commit
f047dbfa
authored
Aug 18, 2016
by
Rob Myers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix scrobble submission problem.
parent
7382d20d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
scrobble-utils.php
gnukebox/scrobble-utils.php
+2
-2
No files found.
gnukebox/scrobble-utils.php
View file @
f047dbfa
?
php
<
?php
/* GNUkebox -- a free software server for recording your listening habits
/* GNUkebox -- a free software server for recording your listening habits
...
@@ -85,7 +85,7 @@ function getTrackCreateIfNew($artist, $album, $track, $mbid) {
...
@@ -85,7 +85,7 @@ function getTrackCreateIfNew($artist, $album, $track, $mbid) {
global
$adodb
;
global
$adodb
;
if
(
$album
!=
'NULL'
)
{
if
(
$album
!=
'NULL'
)
{
$res
=
$adodb
->
GetOne
(
'SELECT id FROM Track WHERE name = '
.
$track
.
' AND artist_name = '
.
$artist
.
' AND album_name = '
.
$album
.
')'
;
$res
=
$adodb
->
GetOne
(
'SELECT id FROM Track WHERE name = '
.
$track
.
' AND artist_name = '
.
$artist
.
' AND album_name = '
.
$album
.
')'
)
;
}
else
{
}
else
{
$res
=
$adodb
->
GetOne
(
'SELECT id FROM Track WHERE name = '
.
$track
.
' AND artist_name = '
.
$artist
.
' AND album_name IS NULL'
);
$res
=
$adodb
->
GetOne
(
'SELECT id FROM Track WHERE name = '
.
$track
.
' AND artist_name = '
.
$artist
.
' AND album_name IS NULL'
);
}
}
...
...
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