Home of the Squeezebox™ & Transporter® network music players.
Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17
  1. #11
    Senior Member
    Join Date
    Nov 2010
    Location
    Hertfordshire, UK
    Posts
    2,657
    Quote Originally Posted by Roland0 View Post
    Assuming the following:
    - web server will run on the same server as LMS
    - busybox is installed (it usually is)
    - files needed go into /home/user/www (can be any dir)
    Code:
    mkdir /home/user/www; cd /home/user/www
    wget -O Index.aspx "http://opml.radiotime.com/Index.aspx?partnerId=16"
    edit /home/user/www/httpd.conf
    Code:
    A:127.0.0.1
    D:*
    
    .aspx:text/xml
    edit /etc/hosts
    Code:
    127.0.0.1 opml.radiotime.com
    start server:
    Code:
    sudo busybox httpd -p 80 -h /home/user/www -c /home/user/www/httpd.conf
    Test without network:
    Code:
    wget "http://opml.radiotime.com/Index.aspx?partnerId=16"
    Thanks - much to think about there. I don't have busybox on my server (it's an old vortexbox PC running xubuntu) but I do have a basic apache web server (of which I know little, but just enough so far for a few simple file shares and extra repos for LMS).

    As I understand it you are suggesting I redirect all requests to opml.radiotime.com to my local host, and that I should pull down the index from opml.radiotime. OK so far.

    However, you have an httpd.conf file and contents specified. I don't have such a file and don't quite understand the contents. I shall experiment to see whether the web address gets picked up or not without that file.

    Edit: I just got permission from those who matter to disconnect from the world for a minute or two. This works. Thanks very much. I'll need to do more research into how this new Index.aspx might affect other things I might have to add in the future.
    Last edited by PasTim; 2018-01-29 at 14:18. Reason: More info
    LMS 7.9.1 on VortexBox Midi box, Xubuntu 17.10, FLACs 16->24 bit, 44.1->192kbps. Touch & EDO. 2nd Touch standard.
    LMS plugin UPnP/DLNA Bridge to MF M1 CLiC (to A308CR amp & ESLs) & Marantz CR603 UPnP renderers.
    Alternatively Minimserver & Upplay to same & to upmpdcli/mpd PC renderers.
    Squeezelite to Meridian USB Explorer DAC to PC speakers/headphones.
    Wireless Xubuntu 17.10 laptop firefox/upplay or Android 'phone with Squeeze-Commander/BubbleUPnP controls LMS/Minimserver.

  2. #12
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,868

    Can I disable html call toopml.radiotime.com?

    > Maybe a new --nointernet switch for LMS would be a good thing to have.
    > Then various bit of code that cannot be disabled from Settings could
    > check for that.


    --nointernet would be difficult to enforce, as we have little control
    over eg. 3rd party plugins. But right now the InternetRadio plugin is
    enabled by default and can't be disabled. I think the right thing to do
    would be allowing this plugin to be disabled. After all that's what's
    causing your problem. In addition with --nomysqueezebox pretty much
    every default internet activity would be disabled by this.

    --

    Michael

  3. #13
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,868

    Can I disable html call toopml.radiotime.com?

    If you want to give this a try, then edit the Slim/Plugin/InternetRadio/install.xml, remove the "enforce" line. Restart LMS. Now you should be able to disable it in the plugin settiongs.

    Full patch:

    Code:
    diff --git a/Slim/Formats/XML.pm b/Slim/Formats/XML.pm
    index 928373f..59f6d9c 100644
    --- a/Slim/Formats/XML.pm
    +++ b/Slim/Formats/XML.pm
    @@ -143,7 +143,8 @@
     
     	if ( $url =~ /(?:radiotime|tunein\.com)/ ) {
     		# Add the TuneIn username
    -		if ( $url !~ /username/ && $url =~ /(?:presets|title)/ 
    +		if ( $url !~ /username/ && $url =~ /(?:presets|title)/
    +			&& Slim::Utils::PluginManager->isEnabled('Slim::Plugin::InternetRadio::Plugin') 
     			&& ( my $username = Slim::Plugin::InternetRadio::TuneIn->getUsername($params->{client}) )
     		) {
     			$url .= '&username=' . uri_escape_utf8($username);
    diff --git a/Slim/Plugin/InternetRadio/install.xml b/Slim/Plugin/InternetRadio/install.xml
    index c33ca47..ec6cdc9 100644
    --- a/Slim/Plugin/InternetRadio/install.xml
    +++ b/Slim/Plugin/InternetRadio/install.xml
    @@ -8,7 +8,7 @@
     	<description>PLUGIN_INTERNET_RADIO_MODULE_NAME_DESC</description>
     	<creator>Logitech</creator>
     	<defaultState>enabled</defaultState>
    -	<enforce>1</enforce>
    +	<enforce>0</enforce>
     	<homepageURL>http://www.mysqueezebox.com/support</homepageURL>
     	<type>2</type><!-- type=extension -->
     	<targetApplication>
    --

    Michael
    Last edited by mherger; 2018-01-30 at 00:17.

  4. #14
    Senior Member
    Join Date
    Nov 2010
    Location
    Hertfordshire, UK
    Posts
    2,657
    Quote Originally Posted by mherger View Post
    If you want to give this a try, then edit the Slim/Plugin/InternetRadio/install.xml, remove the "enforce" line. Restart LMS. Now you should be able to disable it in the plugin settiongs.

    Full patch:

    Code:
    diff --git a/Slim/Formats/XML.pm b/Slim/Formats/XML.pm
    index 928373f..59f6d9c 100644
    --- a/Slim/Formats/XML.pm
    +++ b/Slim/Formats/XML.pm
    @@ -143,7 +143,8 @@
     
     	if ( $url =~ /(?:radiotime|tunein\.com)/ ) {
     		# Add the TuneIn username
    -		if ( $url !~ /username/ && $url =~ /(?:presets|title)/ 
    +		if ( $url !~ /username/ && $url =~ /(?:presets|title)/
    +			&& Slim::Utils::PluginManager->isEnabled('Slim::Plugin::InternetRadio::Plugin') 
     			&& ( my $username = Slim::Plugin::InternetRadio::TuneIn->getUsername($params->{client}) )
     		) {
     			$url .= '&username=' . uri_escape_utf8($username);
    diff --git a/Slim/Plugin/InternetRadio/install.xml b/Slim/Plugin/InternetRadio/install.xml
    index c33ca47..ec6cdc9 100644
    --- a/Slim/Plugin/InternetRadio/install.xml
    +++ b/Slim/Plugin/InternetRadio/install.xml
    @@ -8,7 +8,7 @@
     	<description>PLUGIN_INTERNET_RADIO_MODULE_NAME_DESC</description>
     	<creator>Logitech</creator>
     	<defaultState>enabled</defaultState>
    -	<enforce>1</enforce>
    +	<enforce>0</enforce>
     	<homepageURL>http://www.mysqueezebox.com/support</homepageURL>
     	<type>2</type><!-- type=extension -->
     	<targetApplication>
    --

    Michael
    Thanks. Sorry to be so ignorant, but how do I run that with the patch command (I've only ever run patch a few times in my life)?

    I've tried unsuccessfully with -i and the name of the patch file (when in the perl5 directory).
    LMS 7.9.1 on VortexBox Midi box, Xubuntu 17.10, FLACs 16->24 bit, 44.1->192kbps. Touch & EDO. 2nd Touch standard.
    LMS plugin UPnP/DLNA Bridge to MF M1 CLiC (to A308CR amp & ESLs) & Marantz CR603 UPnP renderers.
    Alternatively Minimserver & Upplay to same & to upmpdcli/mpd PC renderers.
    Squeezelite to Meridian USB Explorer DAC to PC speakers/headphones.
    Wireless Xubuntu 17.10 laptop firefox/upplay or Android 'phone with Squeeze-Commander/BubbleUPnP controls LMS/Minimserver.

  5. #15
    Babelfish's Best Boy mherger's Avatar
    Join Date
    Apr 2005
    Location
    Switzerland
    Posts
    19,868

    Can I disable html call toopml.radiotime.com?

    > Thanks. Sorry to be so ignorant, but how do I run that with the patch
    > command (I've only ever run patch a few times in my life)?


    Hehe... I would have to look it up myself... I'm using a graphical tool.
    But it's only two lines anyway. Replace the 1 with a 0, and copy/paste
    the other line to the corresponding file. :-)

    --

    Michael

  6. #16
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    810
    Quote Originally Posted by mherger View Post
    > Maybe a new --nointernet switch for LMS would be a good thing to have.
    > Then various bit of code that cannot be disabled from Settings could
    > check for that.


    --nointernet would be difficult to enforce, as we have little control
    over eg. 3rd party plugins.
    True - but the end-user could disable the plugin (or choose not to install it if it was clear that it needed internet to function).

    Quote Originally Posted by mherger
    But right now the InternetRadio plugin is
    enabled by default and can't be disabled. I think the right thing to do
    would be allowing this plugin to be disabled. After all that's what's
    causing your problem.
    Yes - that would certainly fix it for this case.

    Quote Originally Posted by mherger
    In addition with --nomysqueezebox pretty much
    every default internet activity would be disabled by this.
    Yep.

  7. #17
    Senior Member
    Join Date
    Nov 2010
    Location
    Hertfordshire, UK
    Posts
    2,657
    Quote Originally Posted by mherger View Post
    > Thanks. Sorry to be so ignorant, but how do I run that with the patch
    > command (I've only ever run patch a few times in my life)?


    Hehe... I would have to look it up myself... I'm using a graphical tool.
    But it's only two lines anyway. Replace the 1 with a 0, and copy/paste
    the other line to the corresponding file. :-)

    --

    Michael
    Done, that works - thanks. I did look for the 'Internet Radio' plugin before realising it was just 'Radio'
    LMS 7.9.1 on VortexBox Midi box, Xubuntu 17.10, FLACs 16->24 bit, 44.1->192kbps. Touch & EDO. 2nd Touch standard.
    LMS plugin UPnP/DLNA Bridge to MF M1 CLiC (to A308CR amp & ESLs) & Marantz CR603 UPnP renderers.
    Alternatively Minimserver & Upplay to same & to upmpdcli/mpd PC renderers.
    Squeezelite to Meridian USB Explorer DAC to PC speakers/headphones.
    Wireless Xubuntu 17.10 laptop firefox/upplay or Android 'phone with Squeeze-Commander/BubbleUPnP controls LMS/Minimserver.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •