phpBB Media Embed PlugIn

Media Sites - Additions & Updates - phpBB Media Embed PlugIn

Re: Media Sites - Additions & Updates

by bikeridr » Tue Jan 10, 2023 5:47 pm

Hello,

So I made a .yml file for YouTube Shorts, but it is not working entirely correct. I mean, I do get the proper video shown, but my width/height is not set correct in the preview and the "watch at YouTube" sends it to the "regular" YT. Below the code if anyone would like to "clean it" and repost a good working code.

Code: Select all

name: YouTubeShorts
host: youtube.com
example: https://www.youtube.com/shorts/xf7N4CdrRco
extract: "!youtube\\.com/shorts/(?'id'[-0-9A-Z_a-z]+)!"
iframe:
    width: 315
    height: 560
    src: http://www.youtube.com/shorts/{@id}
bikeridr
Registered User
Posts: 92
Joined: Wed Oct 14, 2020 9:19 pm

Re: Media Sites - Additions & Updates

by MattF » Tue Jan 10, 2023 11:28 pm

Thats because I don't think you can do this. Youtube.com is already handled by the plugin internally.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5940
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: Media Sites - Additions & Updates

by bikeridr » Wed Jan 11, 2023 6:39 am

Thank you for your answer. The "ordinary" YT handling doesn't support YT Shorts. Will this be implemented in a later release?
bikeridr
Registered User
Posts: 92
Joined: Wed Oct 14, 2020 9:19 pm

Re: Media Sites - Additions & Updates

by MattF » Wed Jan 11, 2023 7:02 am

It supports shorts.
Screenshot 2023-01-10 at 11.02.11 PM.png
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5940
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: Media Sites - Additions & Updates

by bikeridr » Fri Jan 13, 2023 10:34 pm

Thank you for your answer. Checked and found it working
bikeridr
Registered User
Posts: 92
Joined: Wed Oct 14, 2020 9:19 pm

Re: Media Sites - Additions & Updates

by ReXtor » Sat Jan 28, 2023 12:27 pm

I made a .yml file for Yandex Music service

yamusic.yml

Code: Select all

name: "Yandex Music (track)"
host: music.yandex.ru
example: https://music.yandex.ru/album/5307396/track/38633706
extract: "!//music.yandex.ru/album/(?'aid'\\d+)/track/(?'tid'\\d+)!"
iframe:
    width: "100%"
    height: "100"
    src: //music.yandex.ru/iframe/#track/{@tid}/{@aid}
User avatar
ReXtor
Registered User
Posts: 28
Joined: Sat Jan 28, 2023 12:23 pm
Location: Siberia

Re: Media Sites - Additions & Updates

by ReXtor » Sun Jan 29, 2023 4:44 am

I have created a new version of the file for the Yandex music service. Now it supports links not only to individual tracks, but also to albums and playlists. At the same time, it selects the required iframe in src, depending on the link.

yamusic.yml

Code: Select all

name: "Yandex Music"
host: music.yandex.ru
example: https://music.yandex.ru/album/5307396/track/38633706
extract: "!music\\.yandex\\.ru(\\/album\\/(?'aid'\\d+)(\\/track\\/(?'tid'\\d+))?|\\/users\\/(?'uid'\\w+)\\/playlists\\/(?'pid'\\d+))!"
choose:
    when:
        test: "@uid"
        iframe:
            height: "450"
            width: "100%"
            src: //music.yandex.ru/iframe/#playlist/{@uid}/{@pid}
    otherwise:
        choose:
            when:
                test: "@tid"
                iframe:
                    height: "100"
                    width: "100%"
                    src: //music.yandex.ru/iframe/#track/{@tid}/{@aid}
            otherwise:
                iframe:
                    height: "450"
                    width: "100%"
                    src: //music.yandex.ru/iframe/#album/{@aid}
If the previous version for single tracks was previously installed, the file (or the code in the file) should be replaced completely. And then clear the cache.
User avatar
ReXtor
Registered User
Posts: 28
Joined: Sat Jan 28, 2023 12:23 pm
Location: Siberia

Re: Media Sites - Additions & Updates

by 669344682 » Mon Feb 20, 2023 4:36 pm

https://www.bilibili.com/video/BV1VD4y1n7g7?t=12.6

Help! Anyone could help me! T_T Thanks a lot
669344682
Registered User
Posts: 2
Joined: Mon Feb 20, 2023 2:55 pm

Re: Media Sites - Additions & Updates

by MattF » Mon Feb 20, 2023 5:53 pm

669344682 wrote:https://www.bilibili.com/video/BV1VD4y1n7g7?t=12.6

Help! Anyone could help me! T_T Thanks a lot
bilibili.yml

Code: Select all

name: Bilibili
host: bilibili.com
example: https://www.bilibili.com/video/BV1VD4y1n7g7
extract: "!//www.bilibili.com/video/(?'id'\\w+)!"
iframe:
    src: //player.bilibili.com/player.html?bvid={@id}
Remember, once added you need to enable the site in the Manage Sites settings and purge the cache for it to start working. See first post of this thread for info on adding these.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5940
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: Media Sites - Additions & Updates

by 669344682 » Mon Feb 20, 2023 10:54 pm

MattF wrote:
669344682 wrote:https://www.bilibili.com/video/BV1VD4y1n7g7?t=12.6

Help! Anyone could help me! T_T Thanks a lot
bilibili.yml

Code: Select all

name: Bilibili
host: bilibili.com
example: https://www.bilibili.com/video/BV1VD4y1n7g7
extract: "!//www.bilibili.com/video/(?'id'\\w+)!"
iframe:
    src: //player.bilibili.com/player.html?bvid={@id}
Remember, once added you need to enable the site in the Manage Sites settings and purge the cache for it to start working. See first post of this thread for info on adding these.
Thank you, It works right now.
669344682
Registered User
Posts: 2
Joined: Mon Feb 20, 2023 2:55 pm

Re: Media Sites - Additions & Updates

by ponchi101 » Sun Mar 05, 2023 9:26 pm

Hello.
With some of the drama ongoing with Mr Musk, some of our members are using MASTODON SOCIAL as an alternative for more info. However, the links do not display the media as an Embed, but just as a link.
In the media embed settings and management, I can see that MASTODON is not in the list of embed media.
Don't know if I am doing something wrong, or if that media is not supported.

Running 3.3.10, in php 8.0., the plugin installed is 2.0.0. Txs for your help.
mediaembed.jpg
ponchi101
Registered User
Posts: 43
Joined: Fri Dec 04, 2020 3:12 pm

Re: Media Sites - Additions & Updates

by MattF » Sun Mar 05, 2023 10:42 pm

Mastodon is not supported and I'm not sure if it can be.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5940
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman

Re: Media Sites - Additions & Updates

by ponchi101 » Sun Mar 05, 2023 11:01 pm

MattF wrote:Mastodon is not supported and I'm not sure if it can be.
Ok. Thanks for that. I was trying to create the yml file and I did not get even to the point where I could get the FATAL ERROR mistake.
(And I am good at FATAL-ERROR ;) )
ponchi101
Registered User
Posts: 43
Joined: Fri Dec 04, 2020 3:12 pm

Re: Media Sites - Additions & Updates

by rxu » Mon Mar 06, 2023 4:31 am

Mastodon is actually supported since TextFormatter 2.12.2, phpBB 3.3.10 has 2.11.5 embedded, so probably next phpBB version will get updated TextFormatter and support that.
rxu
Extensions Development Team
Posts: 3804
Joined: Wed Oct 25, 2006 12:46 pm
Location: Siberia, Russian Federation

Re: Media Sites - Additions & Updates

by MattF » Mon Mar 06, 2023 3:29 pm

rxu wrote:Mastodon is actually supported since TextFormatter 2.12.2, phpBB 3.3.10 has 2.11.5 embedded, so probably next phpBB version will get updated TextFormatter and support that.
phpBB won’t be able to use Textformatter anymore Beyond version 2.12 because it requires PHP 7.4. This essentially means phpBB can no longer receive any more updates, fixes or additions made to TextFormatter anymore.
Formerly known as VSEMy ExtensionsPlease do not PM me for support.
User avatar
MattF
Extensions Development Coordinator
Extensions Development Coordinator
Posts: 5940
Joined: Sat Jan 17, 2009 9:37 am
Location: Los Angeles, CA
Name: Matt Friedman