mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-18 00:21:21 +02:00
2022-01-08 Fred Gleason <fredg@paravelsystems.com>
* Consolidated the 'pypad' and 'rivwebpyapi' Python modules into a single 'rivendellaudio' package namespace. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
#
|
||||
# Exercise every filepath wildcard in 'pypad.Update::resolveFilepath()'
|
||||
#
|
||||
# (C) Copyright 2018 Fred Gleason <fredg@paravelsystems.com>
|
||||
# (C) Copyright 2018-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
@@ -22,7 +22,10 @@
|
||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
#
|
||||
|
||||
import pypad
|
||||
try:
|
||||
from rivendellaudio import pypad
|
||||
except ModuleNotFoundError:
|
||||
import pypad # Rivendell v3.x style
|
||||
|
||||
def ProcessPad(update):
|
||||
print()
|
||||
|
@@ -4,7 +4,7 @@
|
||||
#
|
||||
# Barebones example pypad script for Rivendell
|
||||
#
|
||||
# (C) Copyright 2018 Fred Gleason <fredg@paravelsystems.com>
|
||||
# (C) Copyright 2018-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
@@ -24,10 +24,13 @@
|
||||
# To see the full documentation of these classes, enter the following at
|
||||
# a python interactive prompt:
|
||||
#
|
||||
# import pypad
|
||||
# from rivendellaudio import pypad
|
||||
# help(pypad)
|
||||
#
|
||||
import pypad
|
||||
try:
|
||||
from rivendellaudio import pypad
|
||||
except ModuleNotFoundError:
|
||||
import pypad # Rivendell v3.x style
|
||||
|
||||
#
|
||||
# First, we create a callback method, that will be called every time a
|
||||
@@ -66,4 +69,5 @@ rcvr.setPadCallback(ProcessPad)
|
||||
# the target Rivendell system. Once started, all further processing can only
|
||||
# be done in the callback method!
|
||||
#
|
||||
rcvr.start('localhost',pypad.PAD_TCP_PORT)
|
||||
rcvr.start('192.168.21.14',pypad.PAD_TCP_PORT)
|
||||
#rcvr.start('localhost',pypad.PAD_TCP_PORT)
|
||||
|
@@ -6,7 +6,7 @@
|
||||
#
|
||||
# Exercise every PAD accessor method of 'pypad.Update' for each update.
|
||||
#
|
||||
# (C) Copyright 2018 Fred Gleason <fredg@paravelsystems.com>
|
||||
# (C) Copyright 2018-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
@@ -22,7 +22,10 @@
|
||||
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
#
|
||||
|
||||
import pypad
|
||||
try:
|
||||
from rivendellaudio import pypad
|
||||
except ModuleNotFoundError:
|
||||
import pypad # Rivendell v3.x style
|
||||
|
||||
def ProcessPad(update):
|
||||
print
|
||||
|
Reference in New Issue
Block a user