搜尋套件、儲存庫與 APP 分類

套件詳情v0.7.16

podcast_search

一個用於搜尋播客並解析播客 RSS 源的程式庫。支援 iTunes 和 PodcastIndex 目錄,以及章節和文字稿等新功能。

AndroidiOSmacOSWindowsLinux
近 30 天下載
2340
喜歡數
36
Pub 分數
160

安裝套件

flutter pub add podcast_search

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個用於發現播客並從 iTunes 和 PodcastIndex 等來源解析 RSS 提要的 Flutter/Dart 套件。它支援現代播客功能,例如章節與字幕,以實現豐富的音訊內容探索。此函式庫簡化了在應用程式中整合播客搜尋與元資料檢索的過程,非常適合音訊導向的應用程式。它相容於多個平台,包括 Android、iOS、macOS、Windows 與 Linux。

適用情境

  • 建構播客發現應用
  • 將播客元資料整合到音訊播放器中
  • 解析帶有章節和字幕的RSS來源
  • 建立個人化播客推薦
  • 支援跨平台播客客戶端

主要特色

  • 搜尋 iTunes 和 PodcastIndex
  • 解析播客 RSS 提要
  • 支援章節和字幕
  • 跨平台相容性
  • 用於取得資訊來源的簡單 API

適合對象

  • 音頻應用開發者
  • 播客平台創建者
  • 需要播客元數據的應用
  • 跨平台音頻項目
  • 使用 Flutter 在多個操作系統上的開發者

使用建議

  • 需要網路連接以取得資訊來源
  • 依賴外部RSS來源的品質
  • 可能需要快取以供離線使用
  • 限制為支援的目錄
  • 轉錄支援取決於來源的可用性

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

A library for searching for podcasts, parsing podcast RSS feeds and obtaining episodes details. Supports searching via iTunes and PodcastIndex.

Usage

Search for podcasts with 'widgets' in the title and find the top podcasts. Both examples limit to 10 results and are set for the United Kingdom:

import 'package:podcast_search/podcast_search.dart';

// ignore_for_file: avoid_print
void main() async {
  var search = Search();

  /// Search for podcasts with 'widgets' in the title.
  var results =
  await search.search('widgets', country: Country.unitedKingdom, limit: 10);

  /// List the name of each podcast found.
  for (var result in results.items) {
    print('Found podcast: ${result.trackName}');
  }

  /// Parse the first podcast.
  final feed = results.items[0].feedUrl;

  /// It is possible to get back a podcast with a missing feed URL, so check that.
  if (feed != null) {
    var podcast = await Feed.loadFeed(url: feed);

    /// Display episode titles.
    for (var episode in podcast.episodes) {
      print('Episode title: ${episode.title}');
    }
  }

  /// Find the top 10 podcasts in the UK.
  var charts = await search.charts(limit: 10, country: Country.unitedKingdom);

  /// List the name of each podcast found.
  for (var result in charts.items) {
    print('Episode title: ${result.trackName}');
  }
}

Supported Namespace Tags

Podcasting 2.0
  • Block
  • Chapters
  • Funding
  • GUID
  • Locked
  • Person
  • Transcripts (VTT, SRT & JSON formats)
  • Value
  • Alternate Enclosure
iTunes
  • Author
  • Episode
  • Season

所屬分類

依賴

依賴清單 6 項

原始碼儲存庫

使用此套件的專案