Skip to content

Commit

Permalink
Revert "Removed SeriesPlugin"
Browse files Browse the repository at this point in the history
This reverts commit dd0301c.

This currently breaks OE-Builds so we can't "just do it"
  • Loading branch information
sreichholf committed Aug 22, 2016
1 parent 490f544 commit 3acb87b
Show file tree
Hide file tree
Showing 63 changed files with 6,294 additions and 0 deletions.
2 changes: 2 additions & 0 deletions seriesplugin/CONTROL/conffiles
@@ -0,0 +1,2 @@
/etc/enigma2/seriesplugin_patterns.json
/etc/enigma2/seriesplugin_pattern_directories.json
6 changes: 6 additions & 0 deletions seriesplugin/CONTROL/control
@@ -0,0 +1,6 @@
Package: enigma2-plugin-extensions-seriesplugin
Description: Find and rename series
Maintainer: betonme
Architecture: all
Homepage: http://www.i-have-a-dreambox.com/wbb2/thread.php?threadid=168016
Depends: enigma2, python-difflib, python-json, python-re, python-xml, python-xmlrpc
9 changes: 9 additions & 0 deletions seriesplugin/CONTROL/postinst
@@ -0,0 +1,9 @@
#!/bin/sh
echo "********************************************************"
echo "* SeriesPlugin installed *"
echo "* Coded by betonme (c) 2012 *"
echo "* Support: IHAD *"
echo "* *"
echo "* Restart Enigma-2 GUI to activate the plugin *"
echo "********************************************************"
exit 0
4 changes: 4 additions & 0 deletions seriesplugin/CONTROL/postrm
@@ -0,0 +1,4 @@
#!/bin/sh
rm -rf /usr/lib/enigma2/python/Plugins/Extensions/SeriesPlugin/
echo "Plugin removed! You should restart enigma2 now!"
exit 0
1 change: 1 addition & 0 deletions seriesplugin/Makefile.am
@@ -0,0 +1 @@
SUBDIRS = src po etc meta
5 changes: 5 additions & 0 deletions seriesplugin/etc/Makefile.am
@@ -0,0 +1,5 @@
installdir = $(sysconfdir)/enigma2

# Do not install the files
# These are just samples for user specific patterns
#install_DATA = seriesplugin_patterns.json seriesplugin_pattern_directories.json
29 changes: 29 additions & 0 deletions seriesplugin/etc/seriesplugin_pattern_directories.json
@@ -0,0 +1,29 @@
[
[
[ " SeriesPlugin " ],
[ " List of directory patterns in JSON notation " ],
[ " String printf pattern , Setup entry " ]
],
[
["Off" , "Disabled"],

["{org:s}/{series:s}/{season:02d}/" , "Original/Series/01/"],
["{org:s}/{series:s}/S{season:02d}/" , "Original/Series/S01/"],
["{org:s}/{series:s}/{rawseason:s}/" , "Original/Series/Raw/"],

["{org:s}/{series:s}/Season {season:02d}/" , "Original/Series/Season 01/"],
["{org:s}/{series:s}/Season {rawseason:s}/" , "Original/Series/Season Raw/"],

["{org:s}/{series:s} {season:02d}/" , "Original/Series 01/"],
["{org:s}/{series:s} S{season:02d}/" , "Original/Series S01/"],

["{org:s}/{series:s} Season {season:02d}/" , "Original/Series Season 01/"],
["{org:s}/{series:s} Season {rawseason:s}/" , "Original/Series Season Raw/"],

["{org:s}/{service:s}/{series:s} Season {rawseason:s}/" , "Original/Service/Series Season Raw/"],
["{org:s}/{channel:s}/{series:s} Season {rawseason:s}/" , "Original/Channel/Series Season Raw/"],

["{org:s}/{date:s}/{series:s}/" , "Date/Series/"],
["{org:s}/{time:s}/{series:s}/" , "Time/Series/"]
]
]
78 changes: 78 additions & 0 deletions seriesplugin/etc/seriesplugin_patterns.json
@@ -0,0 +1,78 @@
[
[
[ " SeriesPlugin " ],
[ " List of episode patterns in JSON notation " ],
[ " String printf pattern , Setup entry " ]
],
[
["Off" , "Disabled"],

["{org:s} S{season:02d}E{episode:02d}" , "Org S01E01"],
["{org:s} S{season:d}E{episode:d}" , "Org S1E1"],

["{org:s} S{season:02d}E{episode:02d} {title:s}" , "Org S01E01 Title"],
["{org:s} S{season:d}E{episode:d} {title:s}" , "Org S1E1 Title"],

["{org:s} {title:s} S{season:02d}E{episode:02d}" , "Org Title S01E01"],
["{org:s} {title:s} S{season:d}E{episode:d}" , "Org Title S1E1"],

["{org:s} - S{season:02d}E{episode:02d} - {title:s}" , "Org - S01E01 - Title"],
["{org:s} - S{season:2d}E{episode:2d} - {title:s}" , "Org - S1E1 - Title"],

["S{season:02d}E{episode:02d}" , "S01E01"],
["S{season:02d}E{episode:02d} {org:s}" , "S01E01 Org"],
["S{season:d}E{episode:d} {org:s}" , "S1E1 Org"],

["S{season:02d}E{episode:02d} {title:s} {org:s}" , "S01E01 Title Org"],
["S{season:d}E{episode:d} {title:s} {org:s}" , "S1E1 Title Org"],

["{title:s} S{season:02d}E{episode:02d} {org:s}" , "Title S01E01 Org"],
["{title:s} S{season:d}E{episode:d} {org:s}" , "Title S1E1 Org"],

["{title:s}" , "Title"],
["{title:s} {org:s}" , "Title Org"],
["{title:s} {series:s}" , "Title Series"],

["{org:s} {title:s}" , "Org Title"],
["{series:s} {title:s}" , "Series Title"],

["{series:s} S{season:02d}E{episode:02d}" , "Series S01E01"],
["{series:s} S{season:d}E{episode:d}" , "Series S1E1"],

["{series:s} S{season:02d}E{episode:02d} {title:s}" , "Series S01E01 Title"],
["{series:s} S{season:d}E{episode:d} {title:s}" , "Series S1E1 Title"],

["{series:s} {title:s} S{season:02d}E{episode:02d}" , "Series Title S01E01"],
["{series:s} {title:s} S{season:d}E{episode:d}" , "Series Title S1E1"],

["S{season:02d}E{episode:02d} {series:s}" , "S01E01 Series"],
["S{season:d}E{episode:d} {series:s}" , "S1E1 Series"],

["S{season:02d}E{episode:02d} {title:s} {series:s}" , "S01E01 Title Series"],
["S{season:d}E{episode:d} {title:s} {series:s}" , "S1E1 Title Series"],

["{title:s} S{season:02d}E{episode:02d} {series:s}" , "Title S01E01 Series"],
["{title:s} S{season:d}E{episode:d} {series:s}" , "Title S1E1 Series"],

["{series:s} - s{season:02d}e{episode:02d} - {title:s}" , "Series - s01e01 - Title"],
["{series:s} - S{season:02d}E{episode:02d} - {title:s}" , "Series - S01E01 - Title"],

["{org:s}_S{season:02d}EP{episode:02d}" , "Org_S01EP01"],
["{org:s}_S{season:02d}EP{episode:02d_}" , "Org_S01EP01_"],

["{series:s} S{rawseason:s} E{rawepisode:s} {title:s}" , "Series SRaw ERaw Title"],
["{series:s} S{rawseason:s}E{rawepisode:s} {title:s}" , "Series SRawERaw Title"],
["{series:s} {rawseason:s} {rawepisode:s} {title:s}" , "Series Raw Raw Title"],
["{series:s} {rawseason:s}{rawepisode:s} {title:s}" , "Series RawRaw Title"],

["{series:s} S{season:02d} E{rawepisode:s} {title:s}" , "Series S01 ERaw Title"],
["{series:s} S{season:02d}E{rawepisode:s} {title:s}" , "Series S01ERaw Title"],
["{series:s} - S{season:02d}E{rawepisode:s} - {title:s}" , "Series - S01ERaw - Title"],

["{channel:s} {series:s} S{season:02d} E{rawepisode:s} {title:s}" , "Channel Series S01 ERaw Title"],
["{service:s} {series:s} S{season:02d}E{rawepisode:s} {title:s}" , "Service Series S01ERaw Title"],

["{date:s} {channel:s} {series:s} S{season:02d} E{rawepisode:s} {title:s}" , "Date Channel Series S01 ERaw Title"],
["{date:s} {time:s} {channel:s} {series:s} S{season:02d} E{rawepisode:s} {title:s}" , "Date Time Channel Series S01 ERaw Title"]
]
]
5 changes: 5 additions & 0 deletions seriesplugin/meta/Makefile.am
@@ -0,0 +1,5 @@
installdir = $(datadir)/meta/

dist_install_DATA = plugin_seriesplugin.xml

#EXTRA_DIST = seriesplugin.jpg
18 changes: 18 additions & 0 deletions seriesplugin/meta/plugin_seriesplugin.xml
@@ -0,0 +1,18 @@
<default>
<prerequisites>
<tag type="Recording" />
<tag type="EPG" />
</prerequisites>
<info>
<author>betonme</author>
<name>SeriesPlugin</name>
<packagename>enigma2-plugin-extensions-seriesplugin</packagename>
<shortdescription>Add season and episode information to Your recordings.</shortdescription>
<description>Automatically search and add season and episode information to Your timer and recordings.</description>
<!--screenshot src=".jpg" /-->
</info>

<files type="package"> <!-- without version, without .ipk -->
<file type="package" name="enigma2-plugin-extensions-seriesplugin" />
</files>
</default>
3 changes: 3 additions & 0 deletions seriesplugin/po/Makefile.am
@@ -0,0 +1,3 @@
PLUGIN = SeriesPlugin
LANGS = de
include $(top_srcdir)/Rules-po.mak

0 comments on commit 3acb87b

Please sign in to comment.