This project is a C# console application that extracts TV guide data from a public api and produces an "XmlTV" data file. The original PHP script was created by Jaime Idolpx (jaime@idolpx.com) and can be found here.
This project is a C# implementation based on the original PHP script by Jaime Idolpx. It extracts TV guide data from a public api and outputs it in the XMLTV format, which is widely used by various TV guide software.
- Extracts TV guide data from a public api.
- Supports up to 8 days of guide data.
- Outputs data in XMLTV format.
- Configurable via command-line arguments.
- .NET 8.0
- Internet connection to access a public api API.
-
Clone the repository:
git clone https://github.com/yourusername/tvtv2xmltv.git cd tvtv2xmltv
-
Build the project:
dotnet build
-
Run the application:
dotnet run -- [options]
The application supports the following command-line arguments:
--timezone
(default: "America/Chicago"): Specify the timezone.--lineUpID
(default: "USA-OTA60611"): Specify the line up ID.--days
(default: 8): Specify the number of days (up to 8).--fileName
(default: "xmltv.xml"): Specify the output file name.
Run with default values:
dotnet run
Run with custom values:
dotnet run -- --timezone="Europe/London" --lineUpID="UK-OTA12345" --days=5 --fileName="custom_output.xml"
To build the project, follow these steps:
-
Ensure you have .NET 8.0 SDK installed.
-
Navigate to the project directory.
-
Run the build command:
dotnet build
- Jaime Idolpx for the original PHP script. The original script can be found here.
- .NET Core Team for providing a powerful framework for building cross-platform applications.
This project is licensed under the MIT License - see the LICENSE file for details.