Giter Club home page Giter Club logo

Comments (5)

sentriz avatar sentriz commented on September 22, 2024

gonic doesn't have a streamId for podcasts, only podcastepisodes. and it's streamId is the podcastepisode ID (to be used for stream.view)

not sure what the issue is you're describing

from gonic.

khers avatar khers commented on September 22, 2024

Sorry, I meant the PodcastEpisode. This object already has an id that holds the gonic id. For instance the following episode that comes back:

{
  'id': 'pe-3002',
  'streamId': 'pe-3002',
  'channelId': 'pd-13',
  'title': '10.15- The Tsar Must Die',
  'description': 'Kids today have no respect.\n\nSponsor: casper.com/revolutions',
  'publishDate': '2019-09-23T11:58:04Z',
  'status': 'completed',
  'parent': '',
  'isDir': False,
  'year': 2019,
  'genre': 'Podcast',
  'coverArt': 'pd-13',
  'size': 59728794,
  'contentType':
  'audio/mpeg',
  'suffix': 'mp3',
  'duration': 1866,
  'bitrate': 256,
  'path': ''
}

Note that id and stream_id hold the same information. On other Subsonic implementations id would hold 'pe-3002' as it does here but stream_id would hold the number of this episode (like the index for this episode into a list of episodes sorted by release date).

Is that a clearer description?

from gonic.

sentriz avatar sentriz commented on September 22, 2024

i see. but you should just stream the streamid as as an identifier to be passed to stream.view. the actual value is an implementation detail of the server i think it shouldn't relevant to client

from gonic.

khers avatar khers commented on September 22, 2024

Sure, but I can stream the id field here as I do with music tracks. This is only a suggestion as the API spec is TDB on podcasts, feel free to close.

from gonic.

sentriz avatar sentriz commented on September 22, 2024

i think any id field is up the server. some use ints (as strings) some use prefixes, some uuids, some use id and set a different auto-increment per table

from gonic.

Related Issues (20)

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.