Giter VIP home page Giter VIP logo

clickpress / contao-news-podcasts Goto Github PK

View Code? Open in Web Editor NEW
1.0 5.0 1.0 100 KB

Add podcast files to Contao 4.9+ news and generate iTunes compatible RSS

License: GNU Lesser General Public License v3.0

PHP 100.00%
itunes podcast podcast-manager podcasts contao-bundle contao-news contao rss-generator rss itunes-podcast itunes-podcast-feed news-podcast spotify-podcast google-podcast podcast-bundle

contao-news-podcasts's Introduction

Version GitHub license

News Podcast for Contao

Add podcast files to your news and generate podcast compatible RSS files

Usage

  1. Configure a new podcast in "News" -> "Podcast Feeds"
  2. In your news article settings check "add podcast" and pick an audio file from your filesystem.
  3. In your /share folder you'll find your new RSS file, which can be tested and provided in podcast platforms.
  4. (Optional) Add the podcast XML to your page layout

Optional

For faster calculation of duration, install mp3info [http://ibiblio.org/mp3info/] on your server and allow shell_exec. Recommended for larger podcast files.

Translation

Translations are managed through Transifex. Feel free to add new: [https://www.transifex.com/projects/p/news_podcasts]

More Information

Please follow the instruction from the official Apple website: [https://www.apple.com/itunes/podcasts/creatorfaq.html]

Credits

Thanks to Martin Schwenzer [https://github.com/Metis77] for supporting this bundle!

contao-news-podcasts's People

Contributors

stefansl avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

samuelheer

contao-news-podcasts's Issues

$objItem->link

Der $objItem->link enthält die Basis URL sollte aber die URL zum NewsEintrag enthalten.

Für die einzelnen Episoden scheint der Link aber nicht nötig zu sein.

Install problem in Contao 4.13.23

Hello,
I'm trying to install contao-news-podcast in Contao 4.13.23 /Php 7.4 with Contao Manager. At the end of the install, I execute database processes. The first ones are ok. Then it asks for
Change field tl_news_podcasts_feed.alias VARCHAR(128) CHARACTER SET utf8 DEFAULT '' NOT NULL COLLATE utf8_bin`

I clic on execute, it seems to be ok but it asks it again... and again... and again...

Then I go to the backoffice, create a new podcast but when saving it, I got this error message : Return value of Clickpress\NewsPodcasts\NewsPodcastsBackend::checkFeedAlias() must be an instance of Clickpress\NewsPodcasts\mixed, string returned

What can i do ? Thanks.

Update XML on feed settings

auf dem Live Server wird der Feed nicht aktualisiert, wenn man die "Podcast-Feeds" Einstellungen ändert.
Änderungen in den News selber oder das XML neu schreiben per Systemwartung klappen.

$this->podcastUrl contains url twice

$this->podcastUrl contains the url to the feed twice:

<atom:link href="https://elternzeitung.de/share/podcast-hechts-hilfe.xml/share/podcast-hechts-hilfe.xml" rel="self" type="application/rss+xml"/>

url encode feed image

itunes:image, also the one from the feed settings, needs to be url encoded to remove spaces.

BaseURL changes on save

Wenn man die Feed Einstellungen speichert, wird an die BaseURL ein / angehängt.

So wird zb aus https://elternzeitung.de/podcasts-> https://elternzeitung.de/podcasts/ was dann zu 404 führt.

Newslist: keine Ausgabe der "nicht-Podcast"-Beiträge mehr

Mit Update auf Contao 4.13.14 und PHP 8.0 werden "keine-Podcast"-Newslisten nicht mehr ausgegeben: "Keine Nachrichten vorhanden". Wird das News Podcasts-Modul deinstalliert, erscheinen die Beiträge wieder.

Herzliche Grüße, Petra

RSS guid

      // Add the GUID
          if ($objItem->guid) {
              // Add the isPermaLink attribute if the guid is not a link (see #4930)
              if (0 !== strncmp($objItem->guid, 'http://', 7) && 0 !== strncmp($objItem->guid, 'https://', 8)) {
                  $xml .= '<guid isPermaLink="false">' . $objItem->guid . '</guid>';
              } else {
                  $xml .= '<guid>' . $objItem->guid . '</guid>';
              }
          } else {
              $xml .= '<guid>' . \StringUtil::specialchars($objItem->link) . '</guid>';
          }

Wo kommt denn eigentlich die guid her?
Es sollte entweder hier einfach die ID des News Eintrags stehen, oder der Deeplink zum newseintrag.
Bisher wird hier bei mir die "BAsisURL" aus den Feed Einstellungen verwendet.

Apple beschreibt die guid so:

What's an episode GUID?
Each episode in your podcast has a globally unique identifier (GUID). It’s very important that each episode has a unique, alphanumeric GUID that never changes, even if an episode’s metadata, like title or enclosure URL, do change.

If a GUID is not provided, an episode’s enclosure URL will be used instead. In this case, make sure that an episode’s enclosure URL is also unique and never changes.

News lists empty in Contao 4.13.35 / PHP 8.1

In Contao 4.13.35 / PHP 8.1, news list modules as well do not display any news items anymore (regardless of the news template chosen), the archive list module does, however. Upon uninstall, the items are displayed again.

add ce_podcast

could you also add a content element, that can be used in article or inside the news?
with a select of news that have a podcast added.

Item image (enhancement)

Autoadd item images from News,
with transform / crop to aspect ration 1:1 and max 3000x3000px.

for example:

<itunes:image href="http://www.example.com/image3000x3000.png"/>

Update XML and "Show from/until"

Is there a way to update the XML not only after saving a news item but also when the "show from" oder "show until" dates are reached? Otherwise if a new news item with a podcast is set to be published in the future with the "show from" functionality the editor has to manually regenerate the XML at the correct time, rendering "show from" unnecessary.

I know this might be a tricky one, but maybe a workaround might be to be able trigger the XML update via a cronjob? Otherwise disable the "show from/until" fields when a podcast is added to the news item so no one runs into that trap?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.