piwave 2.1.5__py3-none-any.whl → 2.1.6__py3-none-any.whl

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.
piwave/backends/base.py CHANGED
@@ -231,8 +231,9 @@ class Backend(ABC):
231
231
 
232
232
  cmd = self.build_command(wav_file, loop)
233
233
  self.current_process = subprocess.Popen(
234
- cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
235
- preexec_fn=os.setsid
234
+ cmd,
235
+ stdout=subprocess.PIPE,
236
+ stderr=subprocess.PIPE
236
237
  )
237
238
  return self.current_process
238
239
 
@@ -35,14 +35,14 @@ class FmTransmitterBackend(Backend):
35
35
 
36
36
  def build_command(self, wav_file: str, loop: bool):
37
37
  return [
38
- 'sudo', self.required_executable,
38
+ self.required_executable,
39
39
  '-f', str(self.frequency),
40
40
  wav_file
41
41
  ]
42
42
 
43
43
  def build_live_command(self):
44
44
  return [
45
- 'sudo', self.required_executable,
45
+ self.required_executable,
46
46
  '-f', str(self.frequency),
47
47
  '-'
48
48
  ]
@@ -35,7 +35,7 @@ class PiFmRdsBackend(Backend):
35
35
 
36
36
  def build_command(self, wav_file: str, loop: bool) -> list:
37
37
  cmd = [
38
- 'sudo', self.required_executable,
38
+ self.required_executable,
39
39
  '-freq', str(self.frequency),
40
40
  '-audio', wav_file
41
41
  ]
piwave/piwave.py CHANGED
@@ -374,8 +374,7 @@ class PiWave:
374
374
  cmd,
375
375
  stdin=subprocess.PIPE,
376
376
  stdout=subprocess.PIPE,
377
- stderr=subprocess.PIPE,
378
- preexec_fn=os.setsid
377
+ stderr=subprocess.PIPE
379
378
  )
380
379
  except Exception as e:
381
380
  Log.error(f"Failed to start live stream: {e}")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: piwave
3
- Version: 2.1.5
3
+ Version: 2.1.6
4
4
  Summary: A python module to broadcast radio waves with your Raspberry Pi.
5
5
  Home-page: https://github.com/douxxtech/piwave
6
6
  Author: Douxx
@@ -0,0 +1,13 @@
1
+ piwave/__init__.py,sha256=jz2r-qclltKTxJjlGnqhAwIlUgjvRTR31f4hjTHP5NA,230
2
+ piwave/__main__.py,sha256=-Z3RI7TiicE5UwWc4dZaHX82-MpwVXWkfMZXOC457_Q,4089
3
+ piwave/logger.py,sha256=ipWzdNcEYob0xjXP8bbTq9enA3nryU-GKzAOKayRqlg,1149
4
+ piwave/piwave.py,sha256=8vuShHa3zcKyzt9Yw2942R1QwfKRjleRfElEfw_yFAI,32395
5
+ piwave/backends/__init__.py,sha256=DUbdyYf2V2XcDB05vmFWEkuJ292YTNiNJjzh1raJ5Cg,3756
6
+ piwave/backends/base.py,sha256=D-VbyDNSJUMpZ7PYjCsqEmP5xA3zwWStCm_biZWWAvI,7765
7
+ piwave/backends/fm_transmitter.py,sha256=Wzsoyi5hqLLZF5eNPmZ7WFvP27OMs2ywJlwrJVut-8w,1403
8
+ piwave/backends/pi_fm_rds.py,sha256=VjcbFeje8LHVr4cBjlL36IcvA3WRfI1hHSGG2ui8Pb0,1467
9
+ piwave-2.1.6.dist-info/licenses/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
10
+ piwave-2.1.6.dist-info/METADATA,sha256=UdEh22ba6NYygU5WRt9G4CG8GcKbRigZevjjwMn5Od8,20819
11
+ piwave-2.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
+ piwave-2.1.6.dist-info/top_level.txt,sha256=xUbZ7Rk6OymSdDxmb9bfO8N-avJ9VYxP41GnXfwKYi8,7
13
+ piwave-2.1.6.dist-info/RECORD,,
@@ -1,13 +0,0 @@
1
- piwave/__init__.py,sha256=jz2r-qclltKTxJjlGnqhAwIlUgjvRTR31f4hjTHP5NA,230
2
- piwave/__main__.py,sha256=-Z3RI7TiicE5UwWc4dZaHX82-MpwVXWkfMZXOC457_Q,4089
3
- piwave/logger.py,sha256=ipWzdNcEYob0xjXP8bbTq9enA3nryU-GKzAOKayRqlg,1149
4
- piwave/piwave.py,sha256=LdBwjdP_MWC-FSacQYOUUHZUGEVk4wR8K5YmdkgJnzo,32434
5
- piwave/backends/__init__.py,sha256=DUbdyYf2V2XcDB05vmFWEkuJ292YTNiNJjzh1raJ5Cg,3756
6
- piwave/backends/base.py,sha256=ttpaxkE-x9l_rQROs3rkrz5qg8kpsIqbmMWyK90Xaf4,7775
7
- piwave/backends/fm_transmitter.py,sha256=JzO5AswPzuoLOkTPLQrFy8r3trQvxXZrDPIGsrPDtmI,1419
8
- piwave/backends/pi_fm_rds.py,sha256=GGcOeazzPBV0TF12EESaI_PldZyG_Jowh64cGMuF7R4,1475
9
- piwave-2.1.5.dist-info/licenses/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
10
- piwave-2.1.5.dist-info/METADATA,sha256=YxawTaGcpPo5hwAqSXJvMbUD_bWW-IvDuHvAhVIdbJM,20819
11
- piwave-2.1.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
12
- piwave-2.1.5.dist-info/top_level.txt,sha256=xUbZ7Rk6OymSdDxmb9bfO8N-avJ9VYxP41GnXfwKYi8,7
13
- piwave-2.1.5.dist-info/RECORD,,
File without changes