diff options
| author | Andreas Brachold <vdr07@deltab.de> | 2008-01-05 12:52:36 +0000 |
|---|---|---|
| committer | Andreas Brachold <vdr07@deltab.de> | 2008-01-05 12:52:36 +0000 |
| commit | d1a1dc63b47d0cad7b3f9d839dc00ff820ac3a50 (patch) | |
| tree | 27bc90420ec3cef48c22bb0876c25b2af5630148 /lib | |
| parent | b20a415da8524ca05d9d6c55ded8f9f98b49823b (diff) | |
| download | xxv-d1a1dc63b47d0cad7b3f9d839dc00ff820ac3a50.tar.gz xxv-d1a1dc63b47d0cad7b3f9d839dc00ff820ac3a50.tar.bz2 | |
* SHARE: set useragent optionally
rdisplay: hide setstart if time on legend bigger then duration
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/XXV/MODULES/SHARE.pm | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/XXV/MODULES/SHARE.pm b/lib/XXV/MODULES/SHARE.pm index 62466cb..2280d2a 100644 --- a/lib/XXV/MODULES/SHARE.pm +++ b/lib/XXV/MODULES/SHARE.pm @@ -66,7 +66,7 @@ sub module { rating => { description => gettext('URL to access popularity web service.'), default => 'http://www.deltab.de/t10.php?wsdl', - type => 'url', + type => 'string', required => gettext('This is required!'), }, update => { @@ -233,7 +233,13 @@ sub ConnectToService { my $version = main::getVersion(); my $client = SOAP::Lite->new; - $client->schema->useragent->agent(sprintf("xxv %s",$version)); + if($client->can('schema')) { + my $schema = $client->schema; + if($schema && $schema->can('useragent')) { + my $ua = $schema->useragent; + $ua->agent(sprintf("xxv %s",$version)) if($ua); + } + } my $webservice = $client->service($service); my $usrkey; |
