sylvainjule / kirby-embed

Embed field for Kirby 3 and 4.
74 stars 3 forks source link

Youtube privacy consent information as media content #7

Closed nilshoerrmann closed 3 years ago

nilshoerrmann commented 3 years ago

When entering a video URL in the panel – instead of actual video data – the plugin stores Youtube's privacy consent information as media content:

----

Youtube:

input: >
  https://www.youtube.com/watch?v=ev-00si0KhM
media:
  title: Bevor Sie zu YouTube weitergehen
  description: null
  url: 'https://consent.youtube.com/ml?continue=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dev-00si0KhM&gl=DE&hl=de&pc=yt&uxe=23983172&src=1'
  type: link
  tags: [ ]
  image: null
  imageWidth: null
  imageHeight: null
  images: [ ]
  code: null
  feeds: [ ]
  width: null
  height: null
  aspectRatio: null
  authorName: null
  authorUrl: null
  providerIcon: https://www.google.com/favicon.ico
  providerIcons:
    - 
      url: https://www.google.com/favicon.ico
      width: 32
      height: 32
      size: 1024
      mime: image/x-icon
  providerName: youtube
  providerUrl: https://youtube.com
  publishedTime: null
  license: null

----

It seems to be this page that's being parsed which is currently shown when visiting Youtube for the first time from Germany (not sure about other parts of the world):

grafik

The panel displays a sync failed message:

grafik
nilshoerrmann commented 3 years ago

Related: https://github.com/oscarotero/Embed/issues/434

benwest commented 3 years ago

This is resolved in the core library, I'd be delighted to see that updated here - I'm too ignorant of Composer to do it myself 😐

tristantbg commented 3 years ago

Should be fixed in v1.0.3 https://github.com/sylvainjule/kirby-embed/commit/17b6640db6dac2920ffa93bd3a59aedbaf1bc5bd