{"action":"closed","issue":{"url":"https://api.github.com/repos/ldleman/Leed/issues/399","repository_url":"https://api.github.com/repos/ldleman/Leed","labels_url":"https://api.github.com/repos/ldleman/Leed/issues/399/labels{/name}","comments_url":"https://api.github.com/repos/ldleman/Leed/issues/399/comments","events_url":"https://api.github.com/repos/ldleman/Leed/issues/399/events","html_url":"https://github.com/ldleman/Leed/issues/399","id":37542561,"number":399,"title":"Meilleure gestion des enclosures","user":{"login":"tmos","id":1592709,"avatar_url":"https://avatars.githubusercontent.com/u/1592709?v=3","gravatar_id":"","url":"https://api.github.com/users/tmos","html_url":"https://github.com/tmos","followers_url":"https://api.github.com/users/tmos/followers","following_url":"https://api.github.com/users/tmos/following{/other_user}","gists_url":"https://api.github.com/users/tmos/gists{/gist_id}","starred_url":"https://api.github.com/users/tmos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmos/subscriptions","organizations_url":"https://api.github.com/users/tmos/orgs","repos_url":"https://api.github.com/users/tmos/repos","events_url":"https://api.github.com/users/tmos/events{/privacy}","received_events_url":"https://api.github.com/users/tmos/received_events","type":"User","site_admin":false},"labels":[{"id":32023655,"url":"https://api.github.com/repos/ldleman/Leed/labels/Suggestion","name":"Suggestion","color":"84b6eb","default":false}],"state":"closed","locked":false,"assignee":{"login":"Simounet","id":582666,"avatar_url":"https://avatars.githubusercontent.com/u/582666?v=3","gravatar_id":"","url":"https://api.github.com/users/Simounet","html_url":"https://github.com/Simounet","followers_url":"https://api.github.com/users/Simounet/followers","following_url":"https://api.github.com/users/Simounet/following{/other_user}","gists_url":"https://api.github.com/users/Simounet/gists{/gist_id}","starred_url":"https://api.github.com/users/Simounet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simounet/subscriptions","organizations_url":"https://api.github.com/users/Simounet/orgs","repos_url":"https://api.github.com/users/Simounet/repos","events_url":"https://api.github.com/users/Simounet/events{/privacy}","received_events_url":"https://api.github.com/users/Simounet/received_events","type":"User","site_admin":false},"assignees":[{"login":"Simounet","id":582666,"avatar_url":"https://avatars.githubusercontent.com/u/582666?v=3","gravatar_id":"","url":"https://api.github.com/users/Simounet","html_url":"https://github.com/Simounet","followers_url":"https://api.github.com/users/Simounet/followers","following_url":"https://api.github.com/users/Simounet/following{/other_user}","gists_url":"https://api.github.com/users/Simounet/gists{/gist_id}","starred_url":"https://api.github.com/users/Simounet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Simounet/subscriptions","organizations_url":"https://api.github.com/users/Simounet/orgs","repos_url":"https://api.github.com/users/Simounet/repos","events_url":"https://api.github.com/users/Simounet/events{/privacy}","received_events_url":"https://api.github.com/users/Simounet/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ldleman/Leed/milestones/3","html_url":"https://github.com/ldleman/Leed/milestones/Versions%20lointaines","labels_url":"https://api.github.com/repos/ldleman/Leed/milestones/3/labels","id":309281,"number":3,"title":"Versions lointaines","description":"Regroupe toutes les fonctionnalités que nous ne mettrons pas dans la prochaine version mais qu'il ne faut pas oublier","creator":{"login":"ldleman","id":2620979,"avatar_url":"https://avatars.githubusercontent.com/u/2620979?v=3","gravatar_id":"","url":"https://api.github.com/users/ldleman","html_url":"https://github.com/ldleman","followers_url":"https://api.github.com/users/ldleman/followers","following_url":"https://api.github.com/users/ldleman/following{/other_user}","gists_url":"https://api.github.com/users/ldleman/gists{/gist_id}","starred_url":"https://api.github.com/users/ldleman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldleman/subscriptions","organizations_url":"https://api.github.com/users/ldleman/orgs","repos_url":"https://api.github.com/users/ldleman/repos","events_url":"https://api.github.com/users/ldleman/events{/privacy}","received_events_url":"https://api.github.com/users/ldleman/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":4,"state":"open","created_at":"2013-04-12T13:23:27Z","updated_at":"2016-12-05T20:08:55Z","due_on":null,"closed_at":null},"comments":14,"created_at":"2014-07-10T08:43:06Z","updated_at":"2016-12-05T20:08:55Z","closed_at":"2016-12-05T20:08:55Z","body":"Salut !\nJ'aimerais proposer une petite modif du comportement de Leed (attendez, partez pas !).\n\nActuellement les enclosures des flux renvoient automatiquement du html fixe : un div avec un h1, un lien et la description de l'enclosure.\nJe pense qu'améliorer la prise en charge de ces éléments et ne pas les considérer comme de simples [cochoneries](https://github.com/ldleman/Leed/blob/f8f268dbb929c96c87c06f9ef7dfa32708a1afea/Feed.class.php#L126) peut ouvrir Leed à de nouveaux horizons, et améliorer grandement l’expérience de certains utilisateurs (amateurs d'images, podcasts, vidéos, etc.).\n\nDonc : est-il possible de passer ça côté affichage ?\nL'idée serait de fournir : \n- un **booléen** pour savoir si une enclosure est présente ;\n- une façon de connaître son **mime type** (cf [la liste des types wiki](https://en.wikipedia.org/wiki/Mime_type#List_of_common_media_types]), on en distingue que 9 différents).\n- et évidement renvoyer aussi **l'url** de l'élément.\n\nÀ noter que la norme RSS recommande **max 1 enclosure par article**, donc ce n'est pas gênant si Leed n'en n'affiche qu'une :)\nL'idée étant évidement que Leed se contente d'offrir un moyen de **détection** et de **typage** des enclosures aux thèmes, et c'est ensuite à eux, s'ils le désirent, de faire une **intégration poussée** (_header imag_é pour chaque article, _player audio_, _vidéo_ etc.). Et accessoirement, si certains sont réfractaires aux enclosures, il suffit de ne pas les implémenter ;)\n\nDans l'idée, je verrais bien un truc comme ça : \n\n```\n{if=\"$weHaveEnclosure\"}\n        {if \"enclosureMimeType == audio\"}\n                <audio src=\"{enclosureUrl}\">\n        {elseif …==image}\n                <img src=\"{enclosureUrl}\" alt=\"{enclosureName}\">\n        {elseif …==video}\n                etc.\n        {/if}\n{/if}\n```\n\nVoilà, je pense que ça pourrait être très sympa comme modif, ça permettrait d'avoir des thèmes plus multimédias, plus imagés, et s'adaptant mieux au type d'informations contenus dans les flux, et donc d'améliorer l’expérience de lecture, au lieu de trop la lisser (comme on le reproche souvent aux lecteurs de flux).\n"}}
{"actor":{"display_login":"Simounet"}}