Skip to content

Commit c72f40b

Browse files
authored
Merge branch 'devel' into patch-1
2 parents 7cdbe35 + ee92729 commit c72f40b

37 files changed

+451
-224
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
LDFLAGS="-s -w"
2-
WINLDFLAGS="-H=windowsgui -s -w"
32

43
build: clean
54
go build -trimpath -ldflags $(LDFLAGS) -o build/go2tv cmd/go2tv/go2tv.go
65

76
windows: clean
8-
env CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ GOOS=windows GOARCH=amd64 go build -trimpath -ldflags $(WINLDFLAGS) -o build/go2tv.exe cmd/go2tv/go2tv.go
7+
env CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ GOOS=windows GOARCH=amd64 go build -trimpath -ldflags $(LDFLAGS) -o build/go2tv.exe cmd/go2tv/go2tv.go
98

109
install: build
1110
mkdir -vp /usr/local/bin/

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ This is a GUI only limitation.
6262

6363
Build requirements and dependencies
6464
-----
65-
- Go v1.19+
65+
- Go v1.23+
6666
- ffmpeg (optional)
6767

6868
**Build using Docker**
@@ -73,13 +73,21 @@ $ docker build --force-rm [--pull] -t go2tv github.com/alexballas/go2tv#main
7373
```
7474
Notice the branch name after the `#`, as the above will build `main`. You can also build `devel` if you want to build the latest code. Usage under Docker is outside this document's scope, check Docker docs for more information, specially volume mounts and networking. [x11docker](https://github.com/mviereck/x11docker) might come handy to run GUI mode, although it's not tested, since main Docker usage is CLI.
7575

76+
**Running using Docker**
77+
78+
Example:
79+
``` console
80+
$ xhost +local:docker # Allows Docker containers to connect to the X server
81+
$ docker run -it --network host -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix go2tv go2tv
82+
```
83+
7684
Quick Start
7785
-----
7886
Download the app here https://github.com/alexballas/Go2TV/releases/latest. A single executable. No installation or external dependencies.
7987

8088
**Transcoding (ffmpeg required)**
8189

82-
Go2TV supports live video transcoding, if ffmpeg is installed. When transcoding, SEEK operations are not available. Transcoding offers the maximum compatibility with the various file formats and devices. Only works with video files.
90+
Go2TV supports live video transcoding, if ffmpeg is installed. When transcoding, SEEK operations are not available. Transcoding offers the maximum compatibility with the various file formats and devices. Only works with video files. *Note:* The Flatpak version of Go2TV bundles ffmpeg.
8391

8492
**MKV/MP4 Subtitle Selection Support (ffmpeg required)**
8593

-173 KB
Loading
-173 KB
Loading

cmd/go2tv-lite/go2tv.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ var (
3535
listPtr = flag.Bool("l", false, "List all available UPnP/DLNA Media Renderer models and URLs.")
3636
versionPtr = flag.Bool("version", false, "Print version.")
3737

38-
ErrNoCombi = errors.New("can't combine -l with other flags")
39-
ErrFailtoList = errors.New("failed to list devices")
38+
errNoCombi = errors.New("can't combine -l with other flags")
39+
errFailtoList = errors.New("failed to list devices")
4040
)
4141

4242
type dummyScreen struct {
@@ -195,12 +195,12 @@ func listFlagFunction() error {
195195
})
196196

197197
if flagsEnabled > 1 {
198-
return ErrNoCombi
198+
return errNoCombi
199199
}
200200

201201
deviceList, err := devices.LoadSSDPservices(1)
202202
if err != nil {
203-
return ErrFailtoList
203+
return errFailtoList
204204
}
205205

206206
fmt.Println()

cmd/go2tv-lite/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.17.1
1+
1.18.0

cmd/go2tv/FyneApp.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Website = "https://go2tv.app"
2+
3+
[Details]
4+
Icon = "assets/go2tv-icon-desktop-512.png"
5+
Name = "go2tv"
6+
ID = "com.go2tv.go2tv"
7+
Version = "1.18.0"
8+
Build = 1

cmd/go2tv/go2tv.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ var (
3737
listPtr = flag.Bool("l", false, "List all available UPnP/DLNA Media Renderer models and URLs.")
3838
versionPtr = flag.Bool("version", false, "Print version.")
3939

40-
ErrNoCombi = errors.New("can't combine -l with other flags")
41-
ErrFailtoList = errors.New("failed to list devices")
40+
errNoCombi = errors.New("can't combine -l with other flags")
41+
errFailtoList = errors.New("failed to list devices")
4242
)
4343

4444
type flagResults struct {
@@ -106,7 +106,7 @@ func run() error {
106106
}
107107

108108
if flagRes.gui {
109-
scr := gui.InitFyneNewScreen(version)
109+
scr := gui.NewFyneScreen(version)
110110
gui.Start(exitCTX, scr)
111111
return nil
112112
}
@@ -191,12 +191,12 @@ func listFlagFunction() error {
191191
})
192192

193193
if flagsEnabled > 1 {
194-
return ErrNoCombi
194+
return errNoCombi
195195
}
196196

197197
deviceList, err := devices.LoadSSDPservices(1)
198198
if err != nil {
199-
return ErrFailtoList
199+
return errFailtoList
200200
}
201201

202202
fmt.Println()

cmd/go2tv/version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.17.1
1+
1.18.0

devices/devices.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var (
2121
func LoadSSDPservices(delay int) (map[string]string, error) {
2222
// Reset device list every time we call this.
2323
urlList := make(map[string]string)
24-
list, err := ssdp.Search(ssdp.All, delay, "")
24+
list, err := ssdp.Search(ssdp.All, delay, "239.255.255.250:1900")
2525
if err != nil {
2626
return nil, fmt.Errorf("LoadSSDPservices search error: %w", err)
2727
}

0 commit comments

Comments
 (0)