Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: metadata lookup failure handling #1321

Merged
merged 1 commit into from
Aug 26, 2024
Merged

Conversation

kevmo314
Copy link
Contributor

@kevmo314 kevmo314 commented Aug 26, 2024

Update add method in lib/screens/settings/audio_sources.dart to handle metadata lookup failures.

  • Metadata Fetching:

    • Wrap MetadataFetch.extract call with a try/catch block to handle potential exceptions.
    • Assign null to metadata if an exception occurs.
    • Use the URL hostname as the title if metadata lookup fails.
  • Audio Source Addition:

    • Update the addSource method to use the title derived from metadata or URL hostname.

For more details, open the Copilot Workspace session.

Update `add` method in `lib/screens/settings/audio_sources.dart` to handle metadata lookup failures.

* **Metadata Fetching:**
  - Wrap `MetadataFetch.extract` call with a try/catch block to handle potential exceptions.
  - Assign `null` to `metadata` if an exception occurs.
  - Use the URL hostname as the title if metadata lookup fails.

* **Audio Source Addition:**
  - Update the `addSource` method to use the title derived from metadata or URL hostname.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/muxable/rtchat?shareId=XXXX-XXXX-XXXX-XXXX).
@kevmo314 kevmo314 enabled auto-merge (squash) August 26, 2024 04:51
@kevmo314 kevmo314 disabled auto-merge August 26, 2024 04:51
@kevmo314 kevmo314 enabled auto-merge (squash) August 26, 2024 04:52
@kevmo314 kevmo314 merged commit 75b45f3 into main Aug 26, 2024
7 checks passed
@kevmo314 kevmo314 deleted the kevmo314/fix-metadata-lookup branch August 26, 2024 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant