Skip to content
This repository was archived by the owner on Dec 31, 2021. It is now read-only.

Commit 6a917a1

Browse files
author
Brian Hornsby
committed
Merge branch 'release/3.0.0'
2 parents 625fb93 + 885a01b commit 6a917a1

File tree

7 files changed

+25
-25
lines changed

7 files changed

+25
-25
lines changed

.gitignore

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
2-
resources/__init__.pyc
3-
4-
resources/lib/__init__.pyc
5-
6-
resources/lib/xbmcsettings.pyc
7-
8-
resources/lib/xbmcutils.pyc
9-
1+
resources/*.pyc
2+
resources/lib/*.pyc
103
*.pyc
4+
*.pyo

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
SimilarTracks for XBMC
1+
SimilarTracks for Kodi
22
===========
33

4-
A script that uses the currently playing track to generate a playlist of similar tracks in your XBMC music library.
4+
A script that uses the currently playing track to generate a playlist of similar tracks in your Kodi music library.
55

66
Features
77
--------
@@ -21,7 +21,7 @@ Screenshots
2121

2222
Installation
2323
-----------
24-
Download the latest zip file and install the addon. See http://wiki.xbmc.org/?title=Add-ons#How_to_install_from_a_ZIP_file for more details on installing addons from zip file.
24+
Download the latest zip file and install the addon. See http://kodi.wiki/view/HOW-TO:Install_an_Add-on_from_a_zip_file for more details on installing addons from zip file.
2525

2626
Usage
2727
-----
@@ -39,7 +39,7 @@ The following settings are available.
3939

4040
License
4141
-------
42-
SimilarTracks for XBMC is licensed under the [GPL 3.0 license] [1].
42+
SimilarTracks for Kodi is licensed under the [GPL 3.0 license] [1].
4343

4444

4545
[1]: http://www.gnu.org/licenses/gpl-3.0.html

addon.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<addon id="script.similartracks" name="Similar Tracks" version="2.0.1" provider-name="brianhornsby">
2+
<addon id="script.similartracks" name="Similar Tracks" version="3.0.0" provider-name="brianhornsby">
33
<requires>
44
<import addon="xbmc.python" version="2.1.0"/>
55
<import addon="script.module.simplejson" version="2.0.10"/>
@@ -9,5 +9,8 @@
99
<summary lang="en">Creates a playlist based on tracks from your music library that are similar to the currently playing track.</summary>
1010
<description lang="en">Creates a playlist based on tracks from your music library that are similar to the currently playing track. Uses the last.fm track.getSimilar api.</description>
1111
<platform>all</platform>
12+
<license>GNU GENERAL PUBLIC LICENSE. Version 3, 29 June 2007</license>
13+
<website>http://brianhornsby.com/kodi_addons/similartracks</website>
14+
<source>https://github.com/brianhornsby/script.similartracks</source>
1215
</extension>
1316
</addon>

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
*** 3.0.0 ***
2+
Updated plugin to use Kodi name. Updated copyright date. [d9ac0ea]
3+
14
*** 2.0.1 ***
25
Fix for issue #1 where unicode character was causing script to raise an exception.
36

default.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
#/*
33
# *
4-
# * SimilarTracks for XBMC.
4+
# * SimilarTracks for Kodi.
55
# *
6-
# * Copyright (C) 2013 Brian Hornsby
6+
# * Copyright (C) 2015 Brian Hornsby
77
# *
88
# * This program is free software: you can redistribute it and/or modify
99
# * it under the terms of the GNU General Public License as published by
@@ -27,16 +27,16 @@
2727
import xbmcgui
2828
from urllib2 import urlopen, URLError
2929

30-
import resources.lib.xbmcsettings as xbmcsettings
31-
import resources.lib.xbmcutils as utils
30+
import resources.lib.kodisettings as kodisettings
31+
import resources.lib.kodiutils as utils
3232

3333
if sys.version_info < (2, 7):
3434
import simplejson
3535
else:
3636
import json as simplejson
3737

3838
_addonid = 'script.similartracks'
39-
_settings = xbmcsettings.XBMCSettings(_addonid, sys.argv)
39+
_settings = kodisettings.KodiSettings(_addonid, sys.argv)
4040

4141
# Get addon information and settings.
4242
_addonname = _settings.get_name()
@@ -199,7 +199,7 @@ def add_tracks_to_playlist(artist, playlisttracks):
199199
pDialog.update(25, _settings.get_string(3005), '%s - %s' % (artist.decode('ascii', 'ignore'), title.decode('ascii', 'ignore')))
200200

201201
count, playlisttracks = get_similar_tracks(artist, title)
202-
log_debug('Found %d similar tracks in XBMC library' % count)
202+
log_debug('Found %d similar tracks in Kodi library' % count)
203203

204204
if _runinbackground or not pDialog.iscanceled():
205205
index = 0
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#/*
22
# *
3-
# * Add-on Settings class for XBMC.
3+
# * SimilarTracks for Kodi.
44
# *
5-
# * Copyright (C) 2012 Brian Hornsby
5+
# * Copyright (C) 2015 Brian Hornsby
66
# *
77
# * This program is free software: you can redistribute it and/or modify
88
# * it under the terms of the GNU General Public License as published by
@@ -23,7 +23,7 @@
2323
import xbmc
2424

2525

26-
class XBMCSettings:
26+
class KodiSettings:
2727
def __init__(self, addonid, argv):
2828
self.__addon__ = xbmcaddon.Addon(id=addonid)
2929
self.__argv__ = argv
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#/*
22
# *
3-
# * Utilities for XBMC addons.
3+
# * SimilarTracks for Kodi.
44
# *
5-
# * Copyright (C) 2012 Brian Hornsby
5+
# * Copyright (C) 2015 Brian Hornsby
66
# *
77
# * This program is free software: you can redistribute it and/or modify
88
# * it under the terms of the GNU General Public License as published by

0 commit comments

Comments
 (0)