Skip to content

Commit

Permalink
Merge branch 'BUGFIX/yapsy1.12'
Browse files Browse the repository at this point in the history
  • Loading branch information
s0ph0s-2 committed Jul 21, 2019
2 parents e27852b + cae20aa commit f984fba
Show file tree
Hide file tree
Showing 20 changed files with 40 additions and 40 deletions.
6 changes: 3 additions & 3 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
# -- Project information -----------------------------------------------------

project = "Gelo"
copyright = "2018, s0ph0s"
copyright = "2019, s0ph0s"
author = "s0ph0s"

# The short X.Y version
version = "1.1"
version = "4.0"
# The full version, including alpha/beta/rc tags
release = "v1.1.0"
release = "v4.0.0"


# -- General configuration ---------------------------------------------------
Expand Down
32 changes: 16 additions & 16 deletions gelo.ini.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ macro_file=$HOME/.config/gelo/macros.ini
broadcast_delay = 8.0

#
# plugin:http_poller: Configure the HTTP poller metadata source
# plugin:HttpPoller: Configure the HTTP poller metadata source
#
[plugin:http_poller]
[plugin:HttpPoller]
# poll_url
# The URL to poll for markers
poll_url=http://localhost:8080/nowplaying.xsl
Expand All @@ -33,9 +33,9 @@ poll_url=http://localhost:8080/nowplaying.xsl
prefix_file = /tmp/prefix.txt

#
# plugin:tweeter: Configure the Twitter plugin
# plugin:Tweeter: Configure the Twitter plugin
#
[plugin:tweeter]
[plugin:Tweeter]
########
# NOTE #
########
Expand Down Expand Up @@ -77,10 +77,10 @@ announce_string=Now Playing{special}: {marker}
;delayed = True

#
# plugin:now_playing_file: A text file that contains a single line with the
# plugin:NowPlayingFile: A text file that contains a single line with the
# current marker data
#
[plugin:now_playing_file]
[plugin:NowPlayingFile]
# path
# The path to write the now playing file to. Environment variable expansion is
# performed on this string value.
Expand All @@ -91,9 +91,9 @@ path=$HOME/Desktop/np.txt


#
# plugin:irc: Configure the IRC client plugin
# plugin:IRC: Configure the IRC client plugin
#
[plugin:irc]
[plugin:IRC]
# nick
# The IRC nick to use when connecting
nick=gelo
Expand Down Expand Up @@ -135,9 +135,9 @@ message=Now Playing{special}: {marker}
;delayed = True

#
# plugin:audacity_labels: Configure the Audacity Labels plugin
# plugin:AudacityLabels: Configure the Audacity Labels plugin
#
[plugin:audacity_labels]
[plugin:AudacityLabels]
# path
# The path to write the file to. Environment variable expansion is performed on
# this string value, and "{show}" will be replaced by the show that Gelo was
Expand All @@ -150,9 +150,9 @@ path=$HOME/Desktop/{show}-{count}.txt
;delayed = False

#
# plugin:http_pusher: Configure the HTTP Pusher plugin
# plugin:HttpPusher: Configure the HTTP Pusher plugin
#
[plugin:http_pusher]
[plugin:HttpPusher]
# url
# The URL to connect to, with no arguments. HTTPS is supported.
url = https://example.com/now_playing
Expand All @@ -176,9 +176,9 @@ marker_param = song
;delayed = False

#
# plugin:somafm: Configure the SomaFM plugin
# plugin:SomaFM: Configure the SomaFM plugin
#
[plugin:somafm]
[plugin:SomaFM]
# stream_url
# The URL of the SomaFM stream to connect to. Must be a direct link, not a
# playlist link. Also, only HTTP MP3 streams are supported, because they're
Expand All @@ -202,9 +202,9 @@ marker_prefix = "(Pre-Show) "
start_disabled = True

#
# plugin:181fm: Configure the 181.FM plugin
# plugin:OneEightyOneFM: Configure the 181.FM plugin
#
[plugin:one_eighty_one_fm]
[plugin:OneEightyOneFM]
# stream_url
# The URL of the 181.FM stream to connect to. Must be a direct link, not a
# playlist link. Also, only HTTP MP3 streams are supported, because they're
Expand Down
2 changes: 1 addition & 1 deletion gelo/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def instanciateElementWithImportInfo(
):
"""Instantiate a plugin.
The typo is intentional, because that's how the framework spells it."""
c = self.config.configparser["plugin:" + plugin_module_name]
c = self.config.configparser["plugin:" + element_name]
return element(c, self.mediator, self.show)

def instanciateElement(self, element):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Core]
Name = AudacityLabels
Module = audacity_labels
Module = AudacityLabels

[Documentation]
Description = Create an Audacity label file from the markers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
class AudacityLabels(arch.IMarkerSink):
"""Write every MarkerType.TRACK marker to a CSV file, but with tabs."""

PLUGIN_MODULE_NAME = "audacity_labels"
PLUGIN_MODULE_NAME = "AudacityLabels"
LINE_TEMPLATE = "{start}\t{finish}\t{label}\n"

def __init__(self, config, mediator: arch.IMediator, show: str):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Core]
Name = HttpPoller
Module = http_poller
Module = HttpPoller

[Documentation]
Description = Poll an HTTP server for marker data every 0.25 seconds.
Expand Down
2 changes: 1 addition & 1 deletion gelo/plugins/http_poller.py → gelo/plugins/HttpPoller.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class HttpPoller(arch.IMarkerSource):
"""Poll an HTTP server of some description for markers."""

PLUGIN_MODULE_NAME = "http_poller"
PLUGIN_MODULE_NAME = "HttpPoller"

def __init__(self, config, mediator: arch.IMediator, show: str):
"""Create a new instance of HttpPoller."""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Core]
Name = HttpPusher
Module = http_pusher
Module = HttpPusher

[Documentation]
Description = Connect to an HTTP(S) endpoint to send marker data
Expand Down
2 changes: 1 addition & 1 deletion gelo/plugins/http_pusher.py → gelo/plugins/HttpPusher.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
class HttpPusher(gelo.arch.IMarkerSink):
"""Push the marker to an HTTP endpoint."""

PLUGIN_MODULE_NAME = "http_pusher"
PLUGIN_MODULE_NAME = "HttpPusher"

def __init__(self, config, mediator: gelo.arch.IMediator, show: str):
"""Create a new HttpPusher."""
Expand Down
4 changes: 2 additions & 2 deletions gelo/plugins/irc.gelo-plugin → gelo/plugins/IRC.gelo-plugin
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Core]
Name = Irc
Module = irc
Name = IRC
Module = IRC

[Documentation]
Description = Connect to an IRC server to send chapter marks.
Expand Down
2 changes: 1 addition & 1 deletion gelo/plugins/irc.py → gelo/plugins/IRC.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class IRC(gelo.arch.IMarkerSink):
"""Connect to IRC to send track names."""

PLUGIN_MODULE_NAME = "irc"
PLUGIN_MODULE_NAME = "IRC"

def __init__(self, config, mediator: gelo.arch.IMediator, show: str):
super().__init__(config, mediator, show)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Core]
Name = NowPlayingFile
Module = now_playing_file
Module = NowPlayingFile

[Documentation]
Description = Write a single-line text file with the marker name, for BUTT.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
class NowPlayingFile(arch.IMarkerSink):
"""Write the current TRACK marker to a text file."""

PLUGIN_MODULE_NAME = "now_playing_file"
PLUGIN_MODULE_NAME = "NowPlayingFile"

def __init__(self, config, med: arch.IMediator, show: str):
"""Create a new NowPlayingFile marker sink."""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Core]
Name = OneEightyOneFM
Module = one_eighty_one_fm
Module = OneEightyOneFM

[Documentation]
Description = Announce track names from 181.FM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class OneEightyOneFM(arch.IMarkerSource):
"""Connect to a 181.FM stream and announce their markers."""

PLUGIN_MODULE_NAME = "one_eighty_one_fm"
PLUGIN_MODULE_NAME = "OneEightyOneFM"
HEADERS = {
"Icy-MetaData": "1",
"User-Agent": "gelo/3.2, one_eighty_one_fm/1.0: "
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Core]
Name = SomaFM
Module = somafm
Module = SomaFM

[Documentation]
Description = Announce track names from Soma.FM
Expand Down
4 changes: 2 additions & 2 deletions gelo/plugins/somafm.py → gelo/plugins/SomaFM.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
from gelo import arch, conf


class SomaFm(arch.IMarkerSource):
class SomaFM(arch.IMarkerSource):
"""Connect to a Soma.FM stream and announce their markers."""

PLUGIN_MODULE_NAME = "somafm"
PLUGIN_MODULE_NAME = "SomaFM"
HEADERS = {
"Icy-MetaData": "1",
"User-Agent": "gelo/3.2, somafm/1.0: https://github.com/s0ph0s-2/gelo",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Core]
Name = Tweeter
Module = tweeter
Module = Tweeter

[Documentation]
Description = Tweet the marker.
Expand Down
2 changes: 1 addition & 1 deletion gelo/plugins/tweeter.py → gelo/plugins/Tweeter.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class Tweeter(gelo.arch.IMarkerSink):
"""Tweet the tracks that you play."""

PLUGIN_MODULE_NAME = "tweeter"
PLUGIN_MODULE_NAME = "Tweeter"

def __init__(self, config, mediator: gelo.arch.IMediator, show: str):
"""Create a new Tweeter."""
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@

setup(
name="gelo",
version="3.1.1",
version="4.0.0",
description="podcast chapter metadata gathering tool for content creators",
url="https://github.com/s0ph0s-2/Gelo",
author="s0ph0s-2",
license="GPL v2",
packages=["gelo", "gelo.plugins"],
package_dir={"gelo": "gelo", "gelo.plugins": "gelo/plugins"},
package_data={"gelo": ["plugins/*.gelo-plugin"]},
install_requires=["yapsy", "requests", "python-twitter", "irc"],
install_requires=["yapsy>=1.12", "requests", "python-twitter", "irc"],
entry_points={
"console_scripts": [
"gelo = gelo.command_line:main",
Expand Down

0 comments on commit f984fba

Please sign in to comment.