Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1
    Junior Member
    Join Date
    Dec 2016
    Posts
    15

    Preannounce: Sprocket - Pocket Casts plugin

    I kept hoping someone else would write this plugin, but got tired of waiting...

    "Sprocket" is a plugin that uses the undocumented APIs of the Pocket Casts web player to allow you to listen to your Pocket Casts subscriptions via LMS/Squeezebox/etc.

    What works for me:

    - Login to Pocket Casts, without having to store your password (it remains to be seen if the Pocket Casts auth token ever expires).

    - Browsing your Pocket Casts "Up Next" playlist and adding episodes from Up Next to the current LMS playlist.

    - Browsing of subscribed podcasts, including unlistened, in progress and starred episodes.

    - (Optional) Synchronizing episode playback status and position with Pocket Casts.

    - (Optional) Marking any episode currently playing on Squeezebox as the "current" episode in "Up Next".

    - (Optional) "Trick play" skip within episodes.

    - (Optional) Variable speed playback (one speed for all episodes) using nothing but LMS built-in tools (sox). Quality is not as good as Pocket Casts mobile apps, but I find 1.1x-1.9x to be quite listenable.


    To head off some possible feature requests, I should also mention what I have no plans or interest in adding:

    - Subscription management or podcast discovery from the various Squeezebox interfaces.

    - Additional "Up Next" queue synchronization or management.


    The post title says "preannounce", but in reality that just means I haven't decided if I want to set up a repository and commit to maintaining this. Those capable of manually installing the plugin will find a 0.1 release attached here.

    With that, a number of important caveats:

    - I've had this operational only for a few days of listening of a few podcasts. Bug reports are welcome, but this is a "use at your own risk" project, especially with the options that allow synchronization with Pocket Casts.

    - I've only tested on my Linux server, I have no idea if it works for Windows/OSX/etc. and no way to test.

    - I'm not committing to supporting this, I just wanted something that worked for me. If someone wants to adopt this and run with it reach out to me. Code is BSD 3-clause license.


    Edit 2019-12-27:

    Uploaded version 0.2 with "New Releases" support.
    Attached Files Attached Files
    Last edited by AxxelH; 2019-12-27 at 13:06.

  2. #2
    Senior Member
    Join Date
    Feb 2008
    Posts
    4,756
    Quote Originally Posted by AxxelH View Post
    I kept hoping someone else would write this plugin, but got tired of waiting...

    "Sprocket" is a plugin that uses the undocumented APIs of the Pocket Casts web player to allow you to listen to your Pocket Casts subscriptions via LMS/Squeezebox/etc.

    What works for me:

    - Login to Pocket Casts, without having to store your password (it remains to be seen if the Pocket Casts auth token ever expires).

    - Browsing your Pocket Casts "Up Next" playlist and adding episodes from Up Next to the current LMS playlist.

    - Browsing of subscribed podcasts, including unlistened, in progress and starred episodes.

    - (Optional) Synchronizing episode playback status and position with Pocket Casts.

    - (Optional) Marking any episode currently playing on Squeezebox as the "current" episode in "Up Next".

    - (Optional) "Trick play" skip within episodes.

    - (Optional) Variable speed playback (one speed for all episodes) using nothing but LMS built-in tools (sox). Quality is not as good as Pocket Casts mobile apps, but I find 1.1x-1.9x to be quite listenable.


    To head off some possible feature requests, I should also mention what I have no plans or interest in adding:

    - Subscription management or podcast discovery from the various Squeezebox interfaces.

    - Additional "Up Next" queue synchronization or management.


    The post title says "preannounce", but in reality that just means I haven't decided if I want to set up a repository and commit to maintaining this. Those capable of manually installing the plugin will find a 0.1 release attached here.

    With that, a number of important caveats:

    - I've had this operational only for a few days of listening of a few podcasts. Bug reports are welcome, but this is a "use at your own risk" project, especially with the options that allow synchronization with Pocket Casts.

    - I've only tested on my Linux server, I have no idea if it works for Windows/OSX/etc. and no way to test.

    - I'm not committing to supporting this, I just wanted something that worked for me. If someone wants to adopt this and run with it reach out to me. Code is BSD 3-clause license.
    Thanks for this. But, I'm confused how to use it!
    When you say 'Login to Pocket Casts', do you mean via the pocket casts webpage?
    It doesn't seem to appear/work as other plugins do by being controllable via the lms web gui. Is that right?
    LMS server: Pi Zero

    Amp: Denon PMA-50

    Players/Speakers: Touch, Logitech Radios, Sonos Play 1s & Beam, Libratone Zipp, GGMM E2 & E3, Yamaha WXAD-010, Loewe Airspeaker, Google Chromecast Audio, Home Mini & Nest Hub, Amazon Echo 2,3 and Show5, Pioneer WX-SMA1, Roberts S1, O2 Joggler, Cisco Joggler, Avantree Priva BT transmitter

    Brexit = ∞ stupidity


    ------------------------------------------------------------------------------------

  3. #3
    Junior Member
    Join Date
    Dec 2016
    Posts
    15
    If the plugin is installed correctly you should see it as an option in the "Plugins" section of your LMS server settings. On that plugin settings page you should see an option to enter your email and Pocket Casts password. When you save/apply the settings page the plugin will login to Pocket Casts and save an auth token for your Pocket Casts account. If that works correctly the settings page should change to show the email address of the logged in account and a checkbox to let you logout of that account if you choose.

    Once logged in navigating to the plugin in the LMS "Apps" section should show you the options for Up Next, subscriptions, etc.

  4. #4
    Senior Member
    Join Date
    Feb 2008
    Posts
    4,756
    Quote Originally Posted by AxxelH View Post
    If the plugin is installed correctly you should see it as an option in the "Plugins" section of your LMS server settings. On that plugin settings page you should see an option to enter your email and Pocket Casts password. When you save/apply the settings page the plugin will login to Pocket Casts and save an auth token for your Pocket Casts account. If that works correctly the settings page should change to show the email address of the logged in account and a checkbox to let you logout of that account if you choose.

    Once logged in navigating to the plugin in the LMS "Apps" section should show you the options for Up Next, subscriptions, etc.
    Thanks.
    Seems to be working! Excellent.
    The only thing missing is a New Releases category (which lists the latest podcast in the subscribed casts).
    LMS server: Pi Zero

    Amp: Denon PMA-50

    Players/Speakers: Touch, Logitech Radios, Sonos Play 1s & Beam, Libratone Zipp, GGMM E2 & E3, Yamaha WXAD-010, Loewe Airspeaker, Google Chromecast Audio, Home Mini & Nest Hub, Amazon Echo 2,3 and Show5, Pioneer WX-SMA1, Roberts S1, O2 Joggler, Cisco Joggler, Avantree Priva BT transmitter

    Brexit = ∞ stupidity


    ------------------------------------------------------------------------------------

  5. #5
    Junior Member
    Join Date
    Dec 2016
    Posts
    15
    Quote Originally Posted by castalla View Post
    Thanks.
    Seems to be working! Excellent.
    The only thing missing is a New Releases category (which lists the latest podcast in the subscribed casts).
    Version 0.2 with support for New Releases is attached to the original post.

  6. #6
    Senior Member
    Join Date
    Feb 2008
    Posts
    4,756
    Quote Originally Posted by AxxelH View Post
    Version 0.2 with support for New Releases is attached to the original post.
    Thanks. Will update tomorrow and report back.
    LMS server: Pi Zero

    Amp: Denon PMA-50

    Players/Speakers: Touch, Logitech Radios, Sonos Play 1s & Beam, Libratone Zipp, GGMM E2 & E3, Yamaha WXAD-010, Loewe Airspeaker, Google Chromecast Audio, Home Mini & Nest Hub, Amazon Echo 2,3 and Show5, Pioneer WX-SMA1, Roberts S1, O2 Joggler, Cisco Joggler, Avantree Priva BT transmitter

    Brexit = ∞ stupidity


    ------------------------------------------------------------------------------------

  7. #7
    Senior Member
    Join Date
    Feb 2008
    Posts
    4,756
    Quote Originally Posted by castalla View Post
    Thanks. Will update tomorrow and report back.
    Updated! Great.

    Thanks.
    LMS server: Pi Zero

    Amp: Denon PMA-50

    Players/Speakers: Touch, Logitech Radios, Sonos Play 1s & Beam, Libratone Zipp, GGMM E2 & E3, Yamaha WXAD-010, Loewe Airspeaker, Google Chromecast Audio, Home Mini & Nest Hub, Amazon Echo 2,3 and Show5, Pioneer WX-SMA1, Roberts S1, O2 Joggler, Cisco Joggler, Avantree Priva BT transmitter

    Brexit = ∞ stupidity


    ------------------------------------------------------------------------------------

  8. #8
    Senior Member
    Join Date
    Feb 2008
    Posts
    4,756
    I'm seeing 1000s of these lines in the server log ... not playing via Sprocket

    [19-12-30 09:27:19.0370] Plugins::Sprocket::Plugin::_PlaybackStateNewSongCa llback (356) Playback state new song handling: playlist newsong
    [19-12-30 09:27:19.0423] Plugins::Sprocket::Plugin::ClearClientPlaybackStat e (248) Clearing all playback state monitoring.
    LMS server: Pi Zero

    Amp: Denon PMA-50

    Players/Speakers: Touch, Logitech Radios, Sonos Play 1s & Beam, Libratone Zipp, GGMM E2 & E3, Yamaha WXAD-010, Loewe Airspeaker, Google Chromecast Audio, Home Mini & Nest Hub, Amazon Echo 2,3 and Show5, Pioneer WX-SMA1, Roberts S1, O2 Joggler, Cisco Joggler, Avantree Priva BT transmitter

    Brexit = ∞ stupidity


    ------------------------------------------------------------------------------------

  9. #9
    Junior Member
    Join Date
    Dec 2016
    Posts
    15
    Is it really thousands? Or is it roughly one per song you play from a different source? The latter is expected, you're just seeing debug logging that happens when the plugin sees a changed song change to a non-Pocket Cast song. Its explicitly removing its hooks (if needed).

    Right now the default log level of the plugin is DEBUG, which helps me if you encounter a problem. You can change the level this in server settings -> logging for the (plugin.sprocket) item to something less noisy like "INFO".

  10. #10
    Senior Member
    Join Date
    Feb 2008
    Posts
    4,756
    Quote Originally Posted by AxxelH View Post
    Is it really thousands? Or is it roughly one per song you play from a different source? The latter is expected, you're just seeing debug logging that happens when the plugin sees a changed song change to a non-Pocket Cast song. Its explicitly removing its hooks (if needed).

    Right now the default log level of the plugin is DEBUG, which helps me if you encounter a problem. You can change the level this in server settings -> logging for the (plugin.sprocket) item to something less noisy like "INFO".
    Thanks for the feedback - I'll change the log level, and report back.
    LMS server: Pi Zero

    Amp: Denon PMA-50

    Players/Speakers: Touch, Logitech Radios, Sonos Play 1s & Beam, Libratone Zipp, GGMM E2 & E3, Yamaha WXAD-010, Loewe Airspeaker, Google Chromecast Audio, Home Mini & Nest Hub, Amazon Echo 2,3 and Show5, Pioneer WX-SMA1, Roberts S1, O2 Joggler, Cisco Joggler, Avantree Priva BT transmitter

    Brexit = ∞ stupidity


    ------------------------------------------------------------------------------------

Posting Permissions

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