Skip to content

Add the ability to export a kodi.m3u8#25

Open
CasperMcFadden95 wants to merge 1 commit intoDevLARLEY:mainfrom
CasperMcFadden95:export-kodi-m3u8
Open

Add the ability to export a kodi.m3u8#25
CasperMcFadden95 wants to merge 1 commit intoDevLARLEY:mainfrom
CasperMcFadden95:export-kodi-m3u8

Conversation

@CasperMcFadden95
Copy link

@CasperMcFadden95 CasperMcFadden95 commented Feb 27, 2025

Thanks for this awesome project.
I added the ability to export a kodi playlist with all the found items. Kodi 21.2+ is supported

A good link to test is https://www.aloula.sa/en/episode/21755 as it has a unicode title and requires the referer/origin headers to be passed to Kodi.

const export_button = document.getElementById('export');
export_button.addEventListener('click', async function() {
const logs = await AsyncLocalStorage.getStorage(null);
SettingsManager.downloadFile(stringToUint8Array(JSON.stringify(logs)), "logs.json");
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This code was replaced as a title can contain unicode characters and those need to be exported correctly

@CasperMcFadden95 CasperMcFadden95 force-pushed the export-kodi-m3u8 branch 2 times, most recently from efed72e to 544d119 Compare March 1, 2025 19:33
'#KODIPROP:inputstream=inputstream.adaptive',
'#KODIPROP:inputstream.adaptive.common_headers=' +
Object.entries(manifest.headers).map(([key, value]) => `${key}=${value}`).join('&'),
legacy_drm ? getKodiDrmLegacyProp(log) : getKodiDrmProp(log),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inputstream.adaptive.drm_legacy is stable and thus made the default
inputstream.adaptive.drm is still under development and could break compatability

@CasperMcFadden95
Copy link
Author

@DevLARLEY any chance you can review this please? I think it would be a good addition. Thanks

Repository owner deleted a comment from AboutSatyam Nov 9, 2025
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