Apr-27-2022, 02:42 AM
I thank you for reformatting that section of code to make things more readable. I hit the "insert code snippet" icon but for some reason it didn't take.
That section of the code is where the problem is located. It does not result in errors, but it does not accomplish the purpose of successfully handling the redirection.
For those who want to see the complete code I have attached a zip file with it.
The output when I attempt to run the script is:
Thank you for any assistance you can give me.
Dave
stream2chromecast.zip (Size: 40.67 KB / Downloads: 95)
That section of the code is where the problem is located. It does not result in errors, but it does not accomplish the purpose of successfully handling the redirection.
For those who want to see the complete code I have attached a zip file with it.
The output when I attempt to run the script is:
Output:dhdurgee@z560:~/Downloads$ stream2chromecast.py -playurl https://stream.revma.ihrhls.com/zc4814 -device 172.16.80.227
-----------------------------------------
Stream2Chromecast version:0.6.3
Copyright (C) 2014-2016 Pat Carter
GNU General Public License v3.0
https://www.gnu.org/licenses/gpl-3.0.html
-----------------------------------------
Redirecting to https://n3ea-e2.revma.ihrhls.com/zc4814?rj-ttl=5&rj-tok=AAABgGjsNjQAapiQN1Ky2XLfAw
Redirecting to https://n3ea-e2.revma.ihrhls.com/zc4814?rj-ttl=5&rj-tok=AAABgGjsOIwARCy_2PF5A_ISbA
Redirecting to https://n31a-e2.revma.ihrhls.com/zc4814?rj-ttl=5&rj-tok=AAABgGjsOoAAcDdphleW1z0pqg
Redirecting to https://n14a-e2.revma.ihrhls.com/zc4814?rj-ttl=5&rj-tok=AAABgGjsPPcAAAsr-P5LZo3vWg
Redirecting to https://n20a-e2.revma.ihrhls.com/zc4814?rj-ttl=5&rj-tok=AAABgGjsP3kArlhwnxm6u9H7gQ
Redirecting to https://n14a-e2.revma.ihrhls.com/zc4814?rj-ttl=5&rj-tok=AAABgGjsQksAsvp6mulkB0CtgQ
Redirecting to https://n14a-e2.revma.ihrhls.com/zc4814?rj-ttl=5&rj-tok=AAABgGjsREgA7LW-9ioBdWoCzg
Redirecting to https://n20a-e2.revma.ihrhls.com/zc4814?rj-ttl=5&rj-tok=AAABgGjsRjsAbDItCd2QdYvNRw
Redirecting to https://n31a-e2.revma.ihrhls.com/zc4814?rj-ttl=5&rj-tok=AAABgGjsSDQAYjSMnQINfwNJMg
HTTP Error: Too many redirects
dhdurgee@z560:~/Downloads$
Running the curl line above will show that it knows how to handle the redirection, so my code is obviously missing something.Thank you for any assistance you can give me.
Dave
stream2chromecast.zip (Size: 40.67 KB / Downloads: 95)