Skip to content

Commit

Permalink
Updated to version 0.5. Change python version as requested. Fixed iss…
Browse files Browse the repository at this point in the history
…ue with manual search. Fixed order on subtitle list
  • Loading branch information
estemendoza committed Mar 28, 2014
1 parent b2ee8f2 commit 64373d8
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
service.subtitles.subscene
==========================

argenteam.net subtitle service plugin for XBMC
argenteam.net subtitle service plugin for XBMC

== Roadmap ==

v1.0
- Make the sync flag to appear on subtitles that are synced version of the original translation
- Make the hearing impared flag to appear con subtitles that are shown as "CC"
4 changes: 2 additions & 2 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="service.subtitles.argenteam"
name="Argenteam.net"
version="0.1"
version="0.5"
provider-name="estemendoza">
<requires>
<import addon="xbmc.python" version="2.1.0"/>
<import addon="xbmc.python" version="2.14.0"/>
</requires>
<extension point="xbmc.subtitle.module"
library="service.py" />
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
0.5
- Fixed encoding issue when doing a manual search with spaces
- Fixed ordering issue when showing list of subtitles

0.1
- initial port from former XBMC subtitles plugin by amet and by CaTzil
6 changes: 4 additions & 2 deletions service.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ def find_subtitles(content):
def append_subtitle(items):

items.sort(key=lambda x: x['rating'], reverse=True)

index = 0
for item in items:
index += 1
listitem = xbmcgui.ListItem(label=item['lang'],
label2=item['filename'],
iconImage=item['rating'],
Expand All @@ -101,7 +102,8 @@ def append_subtitle(items):

## below arguments are optional, it can be used to pass any info needed in download function
## anything after "action=download&" will be sent to addon once user clicks listed subtitle to downlaod
url = "plugin://%s/?action=download&link=%s&filename=%s&id=%s" % (__scriptid__,
url = "plugin://%s/?action=download&actionsortorder=%s&link=%s&filename=%s&id=%s" % (__scriptid__,
str(index).zfill(2),
item['link'],
item['filename'],
item['id'])
Expand Down

0 comments on commit 64373d8

Please sign in to comment.