-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Setting custom GUID not working #41
Comments
hello @dewey ! thank you for the repor! could you copy-n-paste the code and modify it to what you propose? :) it's been a while since i've looked at the spec.
With that spec, if you are adding an Audio file, the GUID is to specify the URL - if not set. IIRC, most iTunes parsers don't even look at the Episode URL but the GUID to list for download. Reading the
But for the life of me, I can't recall exactly why I imposed that restriction. I think it was a way to guarantee that:
I'm open to ways to allow the user to add a GUID, while also guaranteeing a unique item list. Right now, it relies on the URL as the URL is acceptable as being globally unique (according to iTunes that is). If we were to allow GUIDs, anyone can set any static GUID to all episodes - and then the feed would be invalid, without a way for me to tell the user (which is the whole point of using "the functions" to add the episode - a guaranteed valid podcast. lastly, I do believe GUID is used for episode downloads for a lot of Podcast readers as it's in the iTunes spec. allowing you to set it out right may break certain clients. |
Hey,
I'm trying to set the GUID to a unique ID, without having to use the url. This is valid as far as I know. The code seems to just ignore that and set the GUID to the i.Link or i.Enclosure.URL in
AddItem()
.I believe the code block should basically be wrapped in a
if i.GUID == "" {}
so that the user can decide if they want to set a custom GUID or just use the default behavior of using the url.What do you think?
The text was updated successfully, but these errors were encountered: