podigee / podigee-podcast-player

Podcast Web Player
https://www.podigee.com/en/podcast-player
MIT License
207 stars 41 forks source link

Transcript Formatting #62

Open bansheebeat opened 5 years ago

bansheebeat commented 5 years ago

I'm looking to integrate transcripts with the player, but I've been unable to find much documentation on the appropriate transcript format. It looks like it uses a file generated by functionality that is only available to Podigee hosting customers. Therefore, I've based most of my work off of the transcript found here and used in the demo. I use oTranscribe to create my transcript, then use some find and replace commands to achieve the formatting shown in the example.

I have a transcript loading successfully in my player, as seen here: https://podtrificustotalus.com/1-01-the-boy-who-lived-alternate/ The page is password protected (password is test) and the transcript and the audio do not match up. But you can see that the transcript is loading just fine. I have attached the transcript file (113NicolasFlamel.txt). 113NicolasFlamel.txt

After my success with that transcript, I went back to an older transcript I did, ran the same find and replace commands, and tried using it in a player. You can see the page here: https://podtrificustotalus.com/1-01-the-boy-who-lived/ This page is identical to the one linked above aside from the text file used for the transcript. I will also attach the non-working transcript below (101TheBoyWhoLived.txt). 101TheBoyWhoLived.txt I have found the following error message in my browser: podigee-podcast-player.html?id=7dcc&iframeMode=script:244 Uncaught TypeError: Cannot read property '1' of null at podigee-podcast-player.html?id=7dcc&iframeMode=script:244 at Array.map (<anonymous>) at e.parseTimScript (podigee-podcast-player.html?id=7dcc&iframeMode=script:244) at e.parseTimScript (podigee-podcast-player.html?id=7dcc&iframeMode=script:244) at e.processTranscript (podigee-podcast-player.html?id=7dcc&iframeMode=script:244) at e.processTranscript (podigee-podcast-player.html?id=7dcc&iframeMode=script:244) at podigee-podcast-player.html?id=7dcc&iframeMode=script:244 at c (podigee-podcast-player.html?id=7dcc&iframeMode=script:235) at Object.fireWith [as resolveWith] (podigee-podcast-player.html?id=7dcc&iframeMode=script:235) at Object.o.(/1-01-the-boy-who-lived/anonymous function) [as resolve] (https://podtrificustotalus.com/wp-content/plugins/podigee-podcast-player/podigee-podcast-player.html?id=7dcc&iframeMode=script:235:28008)

I can't figure out what is different between the two files, i.e. what makes 113NicolasFlamel.txt work and 101TheBoyWhoLived.txt not. I assume I made a formatting error, but I cannot locate where.

Any help or guidance is appreciated. Perhaps more detailed documentation on the transcript format would be helpful.