Skip to content

[Feature]: improve stream url validation #41

@bre4d777

Description

@bre4d777

Problem Statement

while 7a9c83c introduces basic stream validation for some specific sources it can be improved by implementing optional stream validation in the base source plugin

Proposed Solution

something like

fn requires_stream_verification(&self) -> bool {
    false 
   }
async fn verify_stream(&self, identifier: &str) -> bool {
    super::track::fetch_stream_url(&self.client, identifier).await.is_some()
   } 

for each source similar to is_mirror
so the resolver can call the verify stream function everytime a track is resolved is using it (if the requires_stream_verif8cation returns true )

Alternatives Considered

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions