Small bug if instance url ends with a / (slash)
-
I entered my instance URL with a trailing / and this caused the plugin not to display the Peertube playlist properly. The message is “Error convert JSON data” (I noticed the plugin was requesting URLs with double slashes and was receiving 404 error html content instead of JSON).
Make sure to enter a Peertube instance url in Settings that is without a trailing slash.
@dev on line 180 of peertube-playlist.php, right after:
$peertube_url = get_option(‘pl_peertube_url’);
Can you please add this:
$peertube_url = rtrim($peertube_url,”/”);
I’m still happy to give the first 5-star review to this plugin, that works very well.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Small bug if instance url ends with a / (slash)’ is closed to new replies.