iptvplaylist-m3u-tools 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +21 -0
- data/README.md +7 -0
- data/lib/iptvplaylist_m3u_tools.rb +48 -0
- metadata +45 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 313cbe34094315b321daacb35b7a87c5b98ee93d3c625ab32057efe8a7b71786
|
|
4
|
+
data.tar.gz: 2cde20089717112409a5a7aba89e1c24ede4ea6884a335c37a01fb042c1d9ab5
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 1e0d3588fc6ec38e1038e90f76a8028297b0cf432657ada35bb17e5dda537a7ca74a81411300ed8d4c5e626cc15f334bd68936cf3090a61890c7088ce86d4620
|
|
7
|
+
data.tar.gz: 382f0217c08fc9a242ca0fce943b6908cdf77d63f0921e4fe543e989e021ea2d8b7f96aa16e28bbedd96d0af7f910e7c45d86557fd6a29c163e930a5de48214a
|
data/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 bbwdadfg
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Offline URL helpers for the IPTV Playlist directory and utility pages.
|
|
2
|
+
module IptvPlaylistM3uTools
|
|
3
|
+
HOME = 'https://iptvplaylist.app/'.freeze
|
|
4
|
+
TOOLS = {
|
|
5
|
+
'checker' => '/iptv-checker',
|
|
6
|
+
'analyzer' => '/m3u-playlist-analyzer',
|
|
7
|
+
'viewer' => '/m3u-viewer',
|
|
8
|
+
'guides' => '/guides'
|
|
9
|
+
}.freeze
|
|
10
|
+
|
|
11
|
+
module_function
|
|
12
|
+
|
|
13
|
+
def metadata
|
|
14
|
+
{
|
|
15
|
+
name: 'IPTV Playlist',
|
|
16
|
+
homepage: HOME,
|
|
17
|
+
description: 'Public IPTV playlist directory and M3U utility site.',
|
|
18
|
+
canonical_pages: {
|
|
19
|
+
home: HOME,
|
|
20
|
+
playlists: "#{HOME}playlists",
|
|
21
|
+
checker: tool_url('checker'),
|
|
22
|
+
analyzer: tool_url('analyzer'),
|
|
23
|
+
viewer: tool_url('viewer'),
|
|
24
|
+
guides: tool_url('guides')
|
|
25
|
+
},
|
|
26
|
+
tags: %w[iptv m3u playlist]
|
|
27
|
+
}
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def playlist_url(country)
|
|
31
|
+
"#{HOME}playlists/#{slugify(country)}"
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def tool_url(tool)
|
|
35
|
+
path = TOOLS[tool.to_s.strip.downcase]
|
|
36
|
+
raise ArgumentError, 'tool must be checker, analyzer, viewer, or guides' unless path
|
|
37
|
+
|
|
38
|
+
"#{HOME.delete_suffix('/')}#{path}"
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def slugify(value)
|
|
42
|
+
slug = value.to_s.strip.downcase.gsub(/[^a-z0-9]+/, '-').sub(/^-+/, '').sub(/-+$/, '')
|
|
43
|
+
raise ArgumentError, 'value must be a non-empty string' if slug.empty?
|
|
44
|
+
|
|
45
|
+
slug
|
|
46
|
+
end
|
|
47
|
+
private_class_method :slugify
|
|
48
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: iptvplaylist-m3u-tools
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.2.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- bbwdadfg
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: Offline URL helpers for the IPTV Playlist public directory and M3U utility
|
|
13
|
+
pages.
|
|
14
|
+
executables: []
|
|
15
|
+
extensions: []
|
|
16
|
+
extra_rdoc_files: []
|
|
17
|
+
files:
|
|
18
|
+
- LICENSE
|
|
19
|
+
- README.md
|
|
20
|
+
- lib/iptvplaylist_m3u_tools.rb
|
|
21
|
+
homepage: https://iptvplaylist.app/
|
|
22
|
+
licenses:
|
|
23
|
+
- MIT
|
|
24
|
+
metadata:
|
|
25
|
+
homepage_uri: https://iptvplaylist.app/
|
|
26
|
+
source_code_uri: https://github.com/bbwdadfg/iptvplaylist-m3u-tools
|
|
27
|
+
changelog_uri: https://github.com/bbwdadfg/iptvplaylist-m3u-tools/releases
|
|
28
|
+
rdoc_options: []
|
|
29
|
+
require_paths:
|
|
30
|
+
- lib
|
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
32
|
+
requirements:
|
|
33
|
+
- - ">="
|
|
34
|
+
- !ruby/object:Gem::Version
|
|
35
|
+
version: '3.0'
|
|
36
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - ">="
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0'
|
|
41
|
+
requirements: []
|
|
42
|
+
rubygems_version: 4.0.11
|
|
43
|
+
specification_version: 4
|
|
44
|
+
summary: Offline URL helpers for IPTV Playlist pages
|
|
45
|
+
test_files: []
|