You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provider Name wrongly capitalised for many websites #462
With $url = 'https://eportugal.gov.pt/' the providerName is set as Eportugal instead of ePortugal. Even though "Eportugal" is not present anywhere in the website.
On the other hand, YouTube is returned as "YouTube". For many other websites it seems that the pattern of capitalising only the first letter and having the rest lower case is present.
Oh... Is there any setting to set the fallback to something like null representing the absence of value? Otherwise it can be complicated to distinguish between actual findings and this fallback...
PR #593 improves provider names: they can now come from application-name and apple-mobile-web-app-title, and the domain fallback drops the leading www. It is planned for 4.7.0. If you want to try it before the release:
Activity
oscarotero commentedon Dec 3, 2021
The capitalised domain name is the fallback when the provider name is not found in the code. You can see here the ProviderName detector code: https://github.com/oscarotero/Embed/blob/master/src/Detectors/ProviderName.php#L15
provider_namekey of oEmbed (if exists)og:site_name,publisher, etc meta tagsdiogogithub commentedon Dec 18, 2021
Oh... Is there any setting to set the fallback to something like
nullrepresenting the absence of value? Otherwise it can be complicated to distinguish between actual findings and this fallback...oscarotero commentedon Dec 20, 2021
You can replace any detector, like this one with other with a different behavior. See this example:
https://github.com/oscarotero/Embed#detectors
Vitorinox commentedon Nov 21, 2026
PR #593 improves provider names: they can now come from
application-nameandapple-mobile-web-app-title, and the domain fallback drops the leadingwww. It is planned for 4.7.0. If you want to try it before the release:This issue will stay open for anything that is still missing. Feedback is very welcome.