Originally Posted by
DarkTide
Hi all,
kaivalagi this script print this in python >= 2.7:
conkyRhythmbox.py", line 45
self.parser.add_option("-t", "--template", dest="template", type="string", metavar="FILE", help=u"define a template file to generate output in one call. A displayable item in the file is in the form [--datatype=TI]. The following are possible options within each item: --datatype,--ratingchar. Note that the short forms of the options are not currently supported! None of these options are applicable at command line when using templates.")
I think that optparse module is deprecated, more info in:
http://docs.python.org/library/optparse.html
I don't a python programmer.
Thanks for the great script !!!
I am using python v2.7.1...no issues here. Are you using an up-to-date script? I recall an issue in the past but can't remember if I fixed it or it was python 3.0 related issues...
Code:
[USER@towerpc1 ~]$ python --version
Python 2.7.1
[USER@towerpc1 ~]$ conkyRhythmbox --version
conkyRhythmbox v.2.17
[USER@towerpc1 ~]$ conkyRhythmbox -h
Usage: conkyRhythmbox.py [options]
Options:
-h, --help show this help message and exit
-t FILE, --template=FILE
define a template file to generate output in one call.
A displayable item in the file is in the form
[--datatype=TI]. The following are possible options
within each item: --datatype,--ratingchar. Note that
the short forms of the options are not currently
supported! None of these options are applicable at
command line when using templates.
-d DATATYPE, --datatype=DATATYPE
[default: TI] The data type options are: ST (status),
CA (coverart), TI (title), AL (album), AR (artist), GE
(genre), YR (year), TN (track number), FN (file name),
BR (bitrate k/s), LE (length), PP (current position in
percent), PT (current position in time), VO (volume),
RT (rating). Not applicable at command line when using
templates.
-c PATH, --coverartpath=PATH
[default: /tmp/cover] The file where coverart gets
copied to if found when using the --datatype=CA
option. Note that if set to an empty string i.e. ""
the original file path is provided for the coverart
path.
-r CHAR, --ratingchar=CHAR
[default: *] The output character for the ratings
scale. Command line option overridden if used in
templates.
-s TEXT, --statustext=TEXT
[default: Playing,Paused,Stopped] The text must be
comma delimited in the form 'A,B,C'. Command line
option overridden if used in templates.
-n, --nounknownoutput
Turn off unknown output such as "Unknown" for title
and "0:00" for length. Command line option overridden
if used in templates.
-S, --secondsoutput Force all position and length output to be in seconds
only.
-m LENGTH, --maxlength=LENGTH
[default: 0] Define the maximum length of any
datatypes output, if truncated the output ends in
"..."
-v, --verbose Request verbose output, not a good idea when running
through conky!
-V, --version Displays the version of the script.
--errorlogfile=FILE If a filepath is set, the script appends errors to the
filepath.
--infologfile=FILE If a filepath is set, the script appends info to the
filepath.
Bookmarks