Skip to content

Releases: Salpertio/jellyfin-integration

future proofing

08 Sep 03:02
dcee949
Compare
Choose a tag to compare

Fix YouTube API Script Injection and AJAX Caching

  • Deregistered and dequeued YouTube iframe_api.js and www-widgetapi.js scripts to prevent loading issues.
    (removes the youtube third party cookies before google begins blocking all third party cookies in the future)
  • Added JavaScript script to aggressively block YouTube API scripts loaded dynamically.
  • Improved AJAX request handling by adding cache prevention headers.
  • Enhanced YouTube external link privacy with rel="noopener noreferrer".
  • Improved error logging for better debugging of external content fetching.

v1.5

23 Jul 12:44
23ddc8c
Compare
Choose a tag to compare

Album Cover Retrieval: Ensures album cover images are fetched from albums, not individual songs, for better visual consistency.

AJAX Improvements: Only updates HTML if the album cover changes, reducing flickering.

Settings Enhancements: New settings page to configure server URL, API key, user ID, YouTube link option, mixed content, and refresh interval.

Security and Error Handling: Better error handling and security measures for AJAX requests and user inputs.

CSS Styling: Enhanced styling for an improved visual display.

Documentation Updates: Added setup instructions directly in the plugin settings page.

wordpress is odd when it comes to having plugin php access to make live changes so if you dont see it at first just change the theme (2021 or Twenty-Twenty one) and it becomes seen in the WP ui

warning - be sure you actually select the jf plugin.
(i bricked WP pushing updates for the plugin to kismet 4 times)

p.s.

there was no CORS issue. the plugin was reaching for the album cover from the song primary
(not all songs had one) but 99% of the songs had a parent album with the album cover.

so gpt was asked to change the way the plugin asked to get from album covers. ezpz.

enjoy

1.0

22 Jul 02:57
de39db9
Compare
Choose a tag to compare
1.0

Release Notes for Jellyfin Integration Plugin v1.0
Summary

We are excited to release version 1.0 of the Jellyfin Integration Plugin for WordPress. This release includes numerous bug fixes and enhancements, making it a robust solution for displaying currently playing media from Jellyfin on your WordPress site.
New Features

Now Playing Display: Easily display the now playing information of a specific Jellyfin user using the [jellyfin_now_playing] shortcode.
YouTube Search Link: Optionally enable a YouTube search link for the currently playing media, allowing users to watch the media on YouTube.
Mixed Content Support: Added support for mixed content to handle scenarios where the Jellyfin server is accessed over HTTP and the WordPress site is accessed over HTTPS.
Custom Settings: Configure Jellyfin server URL, API key, and user ID via the plugin settings page.

Enhancements

AJAX Integration: Implemented AJAX to securely fetch data from the server, preventing the API key from being exposed client-side.
User ID Retrieval Instructions: Added instructions on the settings page to help users retrieve their Jellyfin user ID using a curl command.
Security Improvements: Enhanced security measures to ensure sensitive information is handled securely.

Bug Fixes

CORS Issues: Addressed issues with missing album covers due to CORS restrictions. Note that this requires configuration changes in your Nginx or Jellyfin's system.xml file.

Installation and Usage

Download the Plugin:
    Download the plugin files and zip them into a folder named jellyfin-integration.zip.

Install the Plugin:
    Go to your WordPress dashboard.
    Navigate to Plugins > Add New.
    Click on Upload Plugin and upload the jellyfin-integration.zip file.
    Click on Install Now and then Activate.

Configure the Plugin:
    After activation, go to Settings > Jellyfin in your WordPress dashboard.
    Enter your Jellyfin server URL, API key, and user ID.

Use the Shortcode:
    Add the [jellyfin_now_playing] shortcode to any post or page to display the now playing information.

Known Issues

CORS (Cross-Origin Resource Sharing): Some users may experience missing album covers due to CORS restrictions. This is a client-side issue that needs to be fixed in your Nginx or Jellyfin's system.xml configuration.

Future Plans

We are continuously working to improve the Jellyfin Integration Plugin. Your feedback and suggestions are invaluable to us. Please let us know if you encounter any issues or have ideas for new features.

Thank you for using the Jellyfin Integration Plugin for WordPress!