diff --git a/appinfo/info.xml b/appinfo/info.xml index ec2966b..4cd2ccd 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -11,13 +11,15 @@ # Requirements You need to have [GPodderSync](https://apps.nextcloud.com/apps/gpoddersync) installed to use this app!]]> - 1.0.1 + 1.1.0 agpl - Xéfir Destiny + Xéfir Destiny RePod integration multimedia + https://git.crystalyx.net/Xefir/RePod https://git.crystalyx.net/Xefir/RePod/issues + https://example.com/2.jpg diff --git a/lib/Core/PodcastData/PodcastData.php b/lib/Core/PodcastData/PodcastData.php index e475142..4aa71b3 100644 --- a/lib/Core/PodcastData/PodcastData.php +++ b/lib/Core/PodcastData/PodcastData.php @@ -6,6 +6,18 @@ namespace OCA\RePod\Core\PodcastData; use OCA\GPodderSync\Core\PodcastData\PodcastData as CorePodcastData; +/** + * @psalm-type PodcastDataType = array{ + * title: ?string, + * author: ?string, + * link: ?string, + * description: ?string, + * imageUrl: ?string, + * fetchedAtUnix: int, + * imageBlob: ?string, + * atomLink: ?string + * } + */ class PodcastData extends CorePodcastData implements \JsonSerializable { public function __construct( @@ -64,6 +76,9 @@ class PodcastData extends CorePodcastData implements \JsonSerializable return $this->atomLink; } + /** + * @return PodcastDataType + */ public function toArrayWithExtras() { return array_merge(parent::toArray(), [ 'atomLink' => $this->atomLink,