Skip to content

Commit

Permalink
Fix: PT3 の DVB ドライバ で ISDB-S チューナーが認識されない問題を修正
Browse files Browse the repository at this point in the history
グループ化する際に device_infos 変数を上書きしてしまっていたのが原因  盲点だった…
ref: #1
  • Loading branch information
tsukumijima committed Apr 20, 2024
1 parent 2232cbb commit b8cbb18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions isdb_scanner/tuner.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,9 +726,9 @@ def getAvailableDVBDeviceInfos() -> list[DVBDeviceInfo]:
if device_info.tuner_name not in device_infos_grouped:
device_infos_grouped[device_info.tuner_name] = []
device_infos_grouped[device_info.tuner_name].append(device_info)
for device_infos in device_infos_grouped.values():
device_infos.sort(key=lambda x: x.device_path)
for i, device_info in enumerate(device_infos):
for device_infos_in_group in device_infos_grouped.values():
device_infos_in_group.sort(key=lambda x: x.device_path)
for i, device_info in enumerate(device_infos_in_group):
device_info.tuner_name += f' #{i + 1}'

return device_infos
Expand Down

0 comments on commit b8cbb18

Please sign in to comment.