Skip to content

lf_interop_youtube.py: Added platform specific path for youtube automation.#310

Open
Amaresh-Candela wants to merge 1 commit into
greearb:masterfrom
goyalsaurabh06:youtube_path_update
Open

lf_interop_youtube.py: Added platform specific path for youtube automation.#310
Amaresh-Candela wants to merge 1 commit into
greearb:masterfrom
goyalsaurabh06:youtube_path_update

Conversation

@Amaresh-Candela

Copy link
Copy Markdown

lf_interop_youtube.py: Add platform-specific paths for YouTube automation scripts
-->Define absolute directory paths for Windows, Linux, and macOS real applications.
-->Update generic endpoint creation to use these platform-specific paths for youtube_stream.bat and ctyt.bash.
-->Fix argument quoting and improve formatting in the command string for Android devices.

Tested on macos(Macs-Air.ctinb.candelatechindia).
Verified CLI: python3 lf_interop_youtube.py
--mgr 192.168.244.97
--url "https://youtu.be/BHACKCNDMW8?si=psTEUzrc77p38aU1"
--duration 1
--res 1080p
--upstream_port 1.1.eth1

@greearb

greearb commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Why do you need absolute paths? Can you not use ./local/ so that it will work in case someone installs LANforge in a non-standard location?

@Amaresh-Candela

Copy link
Copy Markdown
Author

Yes, Ben. I initially thought we would continue using the absolute paths since our current deployments use the standard LANforge installation directories. However, I realize this would cause issues if LANforge is installed in a different location. I'll update the implementation to use relative paths instead.

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.

2 participants