Skip to content

Commit

Permalink
feat: Release Sep 20 2024 (#437)
Browse files Browse the repository at this point in the history
Co-authored-by: Ankan Pal <itsyourap@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
fix function without reading the config (#422)
  • Loading branch information
rabilrbl authored Sep 21, 2024
1 parent 36cbef3 commit 2a2761f
Show file tree
Hide file tree
Showing 43 changed files with 114 additions and 101 deletions.
2 changes: 1 addition & 1 deletion .deepsource.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ name = "shell"
name = "go"

[analyzers.meta]
import_root = "github.com/rabilrbl/jiotv_go"
import_root = "github.com/jiotv-go/jiotv_go"
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ body:
value: |
# JioTV Go Bug report
Important to note that your issue may have already been reported before. Please check for existing issues [here](https://github.com/rabilrbl/jiotv_go/labels/bug).
Important to note that your issue may have already been reported before. Please check for existing issues [here](https://github.com/jiotv-go/jiotv_go/labels/bug).
- type: textarea
attributes:
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ body:
value: |
# JioTV Go Feature request
Important to note that your issue may have already been reported before. Please check for existing issues [here](https://github.com/rabilrbl/jiotv_go/labels/enhancement).
Important to note that your issue may have already been reported before. Please check for existing issues [here](https://github.com/jiotv-go/jiotv_go/labels/enhancement).
- type: textarea
attributes:
label: Feature description
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ body:
value: |
# JioTV Go Security issue
Important to note that your issue may have already been reported before. Please check for existing issues [here](https://github.com/rabilrbl/jiotv_go/labels/security).
Important to note that your issue may have already been reported before. Please check for existing issues [here](https://github.com/jiotv-go/jiotv_go/labels/security).
- type: textarea
attributes:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ jobs:
# Calculate the new version number.
new_version="v${major}.${minor}.${patch}"
echo "New version: $new_version"
sed -i "s/Version:[[:space:]]*\"[^\"]*\"/Version: \"$new_version\"/" main.go
git add main.go && git commit -m "Bump version to $new_version" && git push origin HEAD:main
# Update the version in VERSION file
echo $new_version > VERSION
git add VERSION && git commit -m "Bump version to $new_version" && git push origin HEAD:main
# Mirrors tags
git tag -fa v$major -m "Mirror tag $new_version"
git tag -fa v$major.$minor -m "Mirror tag $new_version"
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ Please review our [Code of Conduct](CODE_OF_CONDUCT.md) to understand the standa

### Reporting Bugs

If you encounter a bug while using our project, please open an issue on our [issue tracker](https://github.com/rabilrbl/jiotv_go/issues/) with a detailed description of the problem, steps to reproduce, and your system information.
If you encounter a bug while using our project, please open an issue on our [issue tracker](https://github.com/jiotv-go/jiotv_go/issues/) with a detailed description of the problem, steps to reproduce, and your system information.

### Suggesting Enhancements

If you have an idea for an enhancement or a new feature, feel free to open an issue on our [issue tracker](https://github.com/rabilrbl/jiotv_go/issues/). Be sure to provide a clear description of your proposal and why it would be valuable.
If you have an idea for an enhancement or a new feature, feel free to open an issue on our [issue tracker](https://github.com/jiotv-go/jiotv_go/issues/). Be sure to provide a clear description of your proposal and why it would be valuable.

### Code Contribution

Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ COPY pkg ./pkg
COPY web ./web
COPY internal ./internal
COPY main.go ./main.go
COPY VERSION ./VERSION

# Build the Go app with optimizations
RUN go build -ldflags="-s -w" -trimpath -o /app/jiotv_go .
Expand Down
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

JioTV Go, an exciting project that allows you to stream Live TV channels on the web and IPTV. It's a web wrapper around the JioTV Android app, utilizing the same API to fetch and stream channels.

Ready to dive in? Download the latest binary for your operating system from [here](https://github.com/rabilrbl/jiotv_go/releases/latest), and explore the [documentation](https://jiotv_go.rabil.me/) to start your JioTV Go adventure! 🚀
Ready to dive in? Download the latest binary for your operating system from [here](https://github.com/jiotv-go/jiotv_go/releases/latest), and explore the [documentation](https://jiotv_go.rabil.me/) to start your JioTV Go adventure! 🚀

_Give us 🌟 on GitHub if you like this project!_

Expand All @@ -17,7 +17,6 @@ We have video tutorials for [Windows](https://youtu.be/BnNTYTSvVBc), and [Andro
- 🎥 Quality selection (Low, Medium, High) supported.
- ⚙️ Configurable port and host.
- 🔐 Authentication options using Jio ID/Number with password or Jio number with OTP.
- 📺 Additional Sony channels from SonyLiv for convenience.
- 👥 Support for multiple clients simultaneously.
- 🚀 Written in Go, ensuring it's fast, lightweight, and portable.
- 💻 Command-line interface for server management and self-update.
Expand Down Expand Up @@ -54,23 +53,23 @@ The complete documentation for JioTV Go is available at https://jiotv_go.rabil.m

## Star History

<a href="https://star-history.com/#rabilrbl/jiotv_go&Date">
<a href="https://star-history.com/#jiotv-go/jiotv_go&Date">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=rabilrbl/jiotv_go&type=Date&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=rabilrbl/jiotv_go&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=rabilrbl/jiotv_go&type=Date" />
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=jiotv-go/jiotv_go&type=Date&theme=dark" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=jiotv-go/jiotv_go&type=Date" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=jiotv-go/jiotv_go&type=Date" />
</picture>
</a>

## Contributors

[![Contributors](https://contributors-img.web.app/image?repo=rabilrbl/jiotv_go)](https://github.com/rabilrbl/jiotv_go/graphs/contributors)
[![Contributors](https://contributors-img.web.app/image?repo=jiotv-go/jiotv_go)](https://github.com/jiotv-go/jiotv_go/graphs/contributors)

## Let's Make JioTV Go Better Together! 🤝

### **Report Bugs**

Found a pesky bug? No worries! Please help us improve JioTV Go by creating an issue [here](https://github.com/rabilrbl/jiotv_go/issues/new/choose). Be sure to include detailed steps to reproduce the bug, describe the expected behavior, and, if possible, attach screenshots. Your feedback is invaluable!
Found a pesky bug? No worries! Please help us improve JioTV Go by creating an issue [here](https://github.com/jiotv-go/jiotv_go/issues/new/choose). Be sure to include detailed steps to reproduce the bug, describe the expected behavior, and, if possible, attach screenshots. Your feedback is invaluable!

### **Ready to Contribute? Join the Journey! 🚀**

Expand Down
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v3.8.0
4 changes: 2 additions & 2 deletions cmd/background.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"strings"
"time"

"github.com/rabilrbl/jiotv_go/v3/internal/config"
"github.com/rabilrbl/jiotv_go/v3/pkg/utils"
"github.com/jiotv-go/jiotv_go/v3/internal/config"
"github.com/jiotv-go/jiotv_go/v3/pkg/utils"
)

var PID_FILE_NAME = ".jiotv_go.pid"
Expand Down
4 changes: 2 additions & 2 deletions cmd/epg.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"log"
"os"

"github.com/rabilrbl/jiotv_go/v3/pkg/epg"
"github.com/rabilrbl/jiotv_go/v3/pkg/utils"
"github.com/jiotv-go/jiotv_go/v3/pkg/epg"
"github.com/jiotv-go/jiotv_go/v3/pkg/utils"
)

// GenEPG generates a new epg.xml.gz file with updated EPG data by first deleting any existing epg.xml.gz file.
Expand Down
22 changes: 12 additions & 10 deletions cmd/jiotv_go.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
package cmd

import (
"fmt"
"net/http"

"github.com/rabilrbl/jiotv_go/v3/internal/config"
"github.com/rabilrbl/jiotv_go/v3/internal/handlers"
"github.com/rabilrbl/jiotv_go/v3/internal/middleware"
"github.com/rabilrbl/jiotv_go/v3/pkg/epg"
"github.com/rabilrbl/jiotv_go/v3/pkg/scheduler"
"github.com/rabilrbl/jiotv_go/v3/pkg/secureurl"
"github.com/rabilrbl/jiotv_go/v3/pkg/store"
"github.com/rabilrbl/jiotv_go/v3/pkg/utils"
"github.com/rabilrbl/jiotv_go/v3/web"
"github.com/jiotv-go/jiotv_go/v3/internal/config"
"github.com/jiotv-go/jiotv_go/v3/internal/constants"
"github.com/jiotv-go/jiotv_go/v3/internal/handlers"
"github.com/jiotv-go/jiotv_go/v3/internal/middleware"
"github.com/jiotv-go/jiotv_go/v3/pkg/epg"
"github.com/jiotv-go/jiotv_go/v3/pkg/scheduler"
"github.com/jiotv-go/jiotv_go/v3/pkg/secureurl"
"github.com/jiotv-go/jiotv_go/v3/pkg/store"
"github.com/jiotv-go/jiotv_go/v3/pkg/utils"
"github.com/jiotv-go/jiotv_go/v3/web"

"github.com/gofiber/fiber/v2"
"github.com/gofiber/fiber/v2/middleware/filesystem"
Expand Down Expand Up @@ -64,7 +66,7 @@ func JioTVServer(host, port, configPath string, prefork bool) error {
StrictRouting: false,
EnablePrintRoutes: false,
ServerHeader: "JioTV Go",
AppName: "JioTV Go",
AppName: fmt.Sprintf("JioTV Go %s", constants.Version),
})

app.Use(recover.New(recover.Config{
Expand Down
4 changes: 2 additions & 2 deletions cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log"
"os"

"github.com/rabilrbl/jiotv_go/v3/pkg/store"
"github.com/rabilrbl/jiotv_go/v3/pkg/utils"
"github.com/jiotv-go/jiotv_go/v3/pkg/store"
"github.com/jiotv-go/jiotv_go/v3/pkg/utils"

"golang.org/x/term"
)
Expand Down
1 change: 0 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ JioTV Go, an exciting project that allows you to stream Live TV channels on the
- 🎥 Quality selection (Low, Medium, High) supported.
- ⚙️ Configurable port and host.
- 🔐 Authentication options using Jio ID/Number with password or Jio number with OTP.
- 📺 Additional Sony channels from SonyLiv for convenience.
- 👥 Support for multiple clients simultaneously.
- 🚀 Written in Go, ensuring it's fast, lightweight, and portable.
- 💻 Command-line interface for server management and self-update.
Expand Down
4 changes: 2 additions & 2 deletions docs/_old_termux_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ Now look for the architecture in the [table](./get_started.md#the-following-tabl
Then download the binary for your architecture, replace `{arch}` with your architecture:

```bash
wget "https://github.com/rabilrbl/jiotv_go/releases/latest/download/jiotv_go-linux-{arch}"
wget "https://github.com/jiotv-go/jiotv_go/releases/latest/download/jiotv_go-linux-{arch}"
```

For example, if your architecture from `uname -m` is `aarch64`, then you will download the binary for `arm64` architecture:

```bash
wget "https://github.com/rabilrbl/jiotv_go/releases/latest/download/jiotv_go-linux-arm64"
wget "https://github.com/jiotv-go/jiotv_go/releases/latest/download/jiotv_go-linux-arm64"
```

Make the binary executable
Expand Down
4 changes: 2 additions & 2 deletions docs/book.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ src = "."
title = "JioTV Go"

[output.html]
git-repository-url = "https://github.com/rabilrbl/jiotv_go"
edit-url-template = "https://github.com/rabilrbl/jiotv_go/edit/main/docs/{path}"
git-repository-url = "https://github.com/jiotv-go/jiotv_go"
edit-url-template = "https://github.com/jiotv-go/jiotv_go/edit/main/docs/{path}"
6 changes: 3 additions & 3 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ You can also specify the path to the configuration file using the `--config` fla

You can save the following configuration in a file named `jiotv_go.toml`. JioTV Go will automatically load the configuration from this file if it is present in the same directory as the binary.

The file is also available at [configs/jiotv_go-config.toml](https://github.com/rabilrbl/jiotv_go/blob/main/configs/jiotv_go-config.toml).
The file is also available at [configs/jiotv_go-config.toml](https://github.com/jiotv-go/jiotv_go/blob/main/configs/jiotv_go-config.toml).

Omit the lines with `#` as they are comments. They are only for explanation purposes.

Expand Down Expand Up @@ -150,7 +150,7 @@ This example demonstrates how to customize the configuration parameters using TO

You can save the following configuration in a file named `jiotv_go.yaml`.

The file is also available at [configs/jiotv_go-config.yaml](https://github.com/rabilrbl/jiotv_go/blob/main/configs/jiotv_go-config.yaml).
The file is also available at [configs/jiotv_go-config.yaml](https://github.com/jiotv-go/jiotv_go/blob/main/configs/jiotv_go-config.yaml).

```yaml
epg: false
Expand All @@ -168,7 +168,7 @@ proxy: ""
You can save the following configuration in a file named `jiotv_go.json`.

The file is also available at [configs/jiotv_go-config.json](https://github.com/rabilrbl/jiotv_go/blob/main/configs/jiotv_go-config.json).
The file is also available at [configs/jiotv_go-config.json](https://github.com/jiotv-go/jiotv_go/blob/main/configs/jiotv_go-config.json).

```json
{
Expand Down
2 changes: 1 addition & 1 deletion docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ JioTV Go is an open-source project that welcomes contributions from the communit
If you come across any issues or bugs while using JioTV Go, please let us know. Reporting bugs is an essential part of improving the project. Here's how to report a bug:

1. **Go to the Issue Tracker**:
- Visit the [Issue Tracker](https://github.com/rabilrbl/jiotv_go/issues) for JioTV Go on GitHub.
- Visit the [Issue Tracker](https://github.com/jiotv-go/jiotv_go/issues) for JioTV Go on GitHub.

2. **Create a New Issue**:
- Click the "New Issue" button.
Expand Down
4 changes: 2 additions & 2 deletions docs/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ To build JioTV Go from source, you'll need to have [Go](https://golang.org/) ins
Let's start by cloning the repository:

```bash
git clone https://github.com/rabilrbl/jiotv_go.git
git clone https://github.com/jiotv-go/jiotv_go.git
cd jiotv_go
```

Expand Down Expand Up @@ -116,7 +116,7 @@ Now you have the flexibility to customize the look and feel of JioTV Go to match

### Report Bugs

Found a pesky bug? No worries! Please help us improve JioTV Go by creating an issue [here](https://github.com/rabilrbl/jiotv_go/issues/new). Be sure to include detailed steps to reproduce the bug, describe the expected behavior, and, if possible, attach screenshots. Your feedback is invaluable!
Found a pesky bug? No worries! Please help us improve JioTV Go by creating an issue [here](https://github.com/jiotv-go/jiotv_go/issues/new). Be sure to include detailed steps to reproduce the bug, describe the expected behavior, and, if possible, attach screenshots. Your feedback is invaluable!

### Ready to Contribute? Join the Journey!

Expand Down
2 changes: 1 addition & 1 deletion docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Read the [Update command section](./usage/usage.md#2-update-command) in the [Usa
Simply pull the latest image from Docker Hub:

```sh
docker pull ghcr.io/rabilrbl/jiotv_go:latest
docker pull ghcr.io/jiotv-go/jiotv_go:latest
```

## How do I update JioTV Go if I have installed it using Termux?
Expand Down
30 changes: 15 additions & 15 deletions docs/get_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,18 +49,18 @@ You can also download the pre-built binaries for your platform from the [release
| OS Name | Architecture (AKA) | Binary Name |
| -------------- | ------------------ | ---------------------------------------------------------------------------------------------------------------------- |
| Android | arm64 (aarch64) | [jiotv_go-android-arm64](https://github.com/rabilrbl/jiotv_go/releases/latest/download/jiotv_go-android-arm64) |
| Android | amd64 (x86_64) | [jiotv_go-android-amd64](https://github.com/rabilrbl/jiotv_go/releases/latest/download/jiotv_go-android-amd64) |
| Android | arm | [jiotv_go-android-arm](https://github.com/rabilrbl/jiotv_go/releases/latest/download/jiotv_go-android-arm) |
| Linux | arm64 (aarch64) | [jiotv_go-linux-arm64](https://github.com/rabilrbl/jiotv_go/releases/latest/download/jiotv_go-linux-arm64) |
| Linux | amd64 (x86_64) | [jiotv_go-linux-amd64](https://github.com/rabilrbl/jiotv_go/releases/latest/download/jiotv_go-linux-amd64) |
| Linux | arm | [jiotv_go-linux-arm](https://github.com/rabilrbl/jiotv_go/releases/latest/download/jiotv_go-linux-arm) |
| Linux | 386 (x86, i686) | [jiotv_go-linux-386](https://github.com/rabilrbl/jiotv_go/releases/latest/download/jiotv_go-linux-386) |
| Windows | 386 (x86, i686) | [jiotv_go-windows-386.exe](https://github.com/rabilrbl/jiotv_go/releases/latest/download/jiotv_go-windows-386.exe) |
| Windows | amd64 (x86_64) | [jiotv_go-windows-amd64.exe](https://github.com/rabilrbl/jiotv_go/releases/latest/download/jiotv_go-windows-amd64.exe) |
| Windows | arm64 (aarch64) | [jiotv_go-windows-arm64.exe](https://github.com/rabilrbl/jiotv_go/releases/latest/download/jiotv_go-windows-arm64.exe) |
| Darwin (macOS) | amd64 (x86_64) | [jiotv_go-darwin-amd64](https://github.com/rabilrbl/jiotv_go/releases/latest/download/jiotv_go-darwin-amd64) |
| Darwin (macOS) | arm64 (aarch64) | [jiotv_go-darwin-arm64](https://github.com/rabilrbl/jiotv_go/releases/latest/download/jiotv_go-darwin-arm64) |
| Android | arm64 (aarch64) | [jiotv_go-android-arm64](https://github.com/jiotv-go/jiotv_go/releases/latest/download/jiotv_go-android-arm64) |
| Android | amd64 (x86_64) | [jiotv_go-android-amd64](https://github.com/jiotv-go/jiotv_go/releases/latest/download/jiotv_go-android-amd64) |
| Android | arm | [jiotv_go-android-arm](https://github.com/jiotv-go/jiotv_go/releases/latest/download/jiotv_go-android-arm) |
| Linux | arm64 (aarch64) | [jiotv_go-linux-arm64](https://github.com/jiotv-go/jiotv_go/releases/latest/download/jiotv_go-linux-arm64) |
| Linux | amd64 (x86_64) | [jiotv_go-linux-amd64](https://github.com/jiotv-go/jiotv_go/releases/latest/download/jiotv_go-linux-amd64) |
| Linux | arm | [jiotv_go-linux-arm](https://github.com/jiotv-go/jiotv_go/releases/latest/download/jiotv_go-linux-arm) |
| Linux | 386 (x86, i686) | [jiotv_go-linux-386](https://github.com/jiotv-go/jiotv_go/releases/latest/download/jiotv_go-linux-386) |
| Windows | 386 (x86, i686) | [jiotv_go-windows-386.exe](https://github.com/jiotv-go/jiotv_go/releases/latest/download/jiotv_go-windows-386.exe) |
| Windows | amd64 (x86_64) | [jiotv_go-windows-amd64.exe](https://github.com/jiotv-go/jiotv_go/releases/latest/download/jiotv_go-windows-amd64.exe) |
| Windows | arm64 (aarch64) | [jiotv_go-windows-arm64.exe](https://github.com/jiotv-go/jiotv_go/releases/latest/download/jiotv_go-windows-arm64.exe) |
| Darwin (macOS) | amd64 (x86_64) | [jiotv_go-darwin-amd64](https://github.com/jiotv-go/jiotv_go/releases/latest/download/jiotv_go-darwin-amd64) |
| Darwin (macOS) | arm64 (aarch64) | [jiotv_go-darwin-arm64](https://github.com/jiotv-go/jiotv_go/releases/latest/download/jiotv_go-darwin-arm64) |
#### Identifying your OS and Architecture
Expand Down Expand Up @@ -105,7 +105,7 @@ Make sure you have [Docker](https://docs.docker.com/get-docker/) installed on yo
Run the command:
```sh
docker run -p 5001:5001 -v ./.jiotv_go/secrets:/app/secrets ghcr.io/rabilrbl/jiotv_go
docker run -p 5001:5001 -v ./.jiotv_go/secrets:/app/secrets ghcr.io/jiotv-go/jiotv_go
```
Open your web browser and visit [http://localhost:5001/](http://localhost:5001/).
Expand All @@ -117,15 +117,15 @@ By default, JioTV Go Docker image runs with `serve --public` command. You can ov
For example, to run JioTV Go with `serve --public --port 8080` command, run:
```sh
docker run -p 8080:8080 -v ./.jiotv_go:/app/.jiotv_go ghcr.io/rabilrbl/jiotv_go serve --public --port 8080
docker run -p 8080:8080 -v ./.jiotv_go:/app/.jiotv_go ghcr.io/jiotv-go/jiotv_go serve --public --port 8080
```
### Keep JioTV Go Updated
To update to the latest version, run:
```sh
docker pull ghcr.io/rabilrbl/jiotv_go:latest
docker pull ghcr.io/jiotv-go/jiotv_go:latest
```
---
Expand Down
Loading

0 comments on commit 2a2761f

Please sign in to comment.