podflow 20250330.1__py3-none-any.whl → 20250330.2__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.
@@ -175,7 +175,9 @@
175
175
  color: var(--secondary-text);
176
176
  margin-top: 10px;
177
177
  }
178
-
178
+ .message {
179
+ padding: 0px;
180
+ }
179
181
  /* 菜单切换按钮 */
180
182
  #toggleMenu {
181
183
  width: 35px;
@@ -343,29 +345,27 @@
343
345
  const lastNewMessage = newMessages[newMessages.length - 1];
344
346
  const lastOldMessage = oldMessages[oldMessages.length - 1];
345
347
  if (lastNewMessage !== lastOldMessage) {
346
- const br = document.createElement('br'); // 创建 <br> 标签
347
- const textNode = document.createTextNode(lastNewMessage); // 创建文本节点
348
+ const p = document.createElement('p');
349
+ p.innerHTML = lastNewMessage;
350
+ p.className = 'message'; // 添加 CSS 类名
348
351
 
349
352
  // 获取容器的最后一个子元素
350
353
  const lastChild = container.lastElementChild;
351
-
352
- // 如果容器有子元素,则替换最后一个(这里逻辑可能需要调整,因为你不再替换 <p>)
354
+ // 如果容器有子元素,则替换最后一个
353
355
  if (lastChild) {
354
- container.removeChild(lastChild); // 移除最后一个元素
355
- container.appendChild(textNode); // 添加新的文本节点
356
- container.appendChild(br); // 添加换行符
356
+ container.replaceChild(p, lastChild);
357
357
  } else {
358
- container.appendChild(textNode);
359
- container.appendChild(br);
358
+ // 如果容器为空,则直接添加
359
+ container.appendChild(p);
360
360
  }
361
361
  }
362
362
  } else {
363
363
  // 如果 newMessages 和 oldMessages 元素数量不一致,则执行原来的添加逻辑
364
364
  newMessages.slice(oldMessages.length).forEach(msg => {
365
- const br = document.createElement('br');
366
- const textNode = document.createTextNode(msg);
367
- container.appendChild(textNode);
368
- container.appendChild(br);
365
+ const p = document.createElement('p');
366
+ p.innerHTML = msg;
367
+ p.className = 'message'; // 添加 CSS 类名
368
+ container.appendChild(p);
369
369
  });
370
370
  }
371
371
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: podflow
3
- Version: 20250330.1
3
+ Version: 20250330.2
4
4
  Summary: A podcast server that includes YouTube and BiliBili
5
5
  Home-page: https://github.com/gruel-zxz/podflow
6
6
  Author: gruel_zxz
@@ -80,7 +80,7 @@ podflow/remove/remove_dir.py,sha256=xQIhrnqnYjMzXjoSWaTvm7JwPYOFTN1muuTPdaLDXpQ,
80
80
  podflow/remove/remove_file.py,sha256=8wAJQehs-XBqvu0vPlEme2_tt0FZxc5ELwGMxXA_558,982
81
81
  podflow/repair/__init__.py,sha256=Gpc1i6xiSLodKjjmzH66c_Y1z0HQ9E9CS3p95FRnVFM,45
82
82
  podflow/repair/reverse_log.py,sha256=Wc_vAH0WB-z1fNdWx7FYaVH4caRPtot7tDwDwFhmpz4,1106
83
- podflow/templates/index.html,sha256=HxFnXOwR390eoPGTJzxRAnF5N1NjVBPH0x_gjkFKWmk,15589
83
+ podflow/templates/index.html,sha256=EndApPxNShasPLEhcDbt5ZAYCjoFH0uoV34_Q-0L8l0,15365
84
84
  podflow/upload/__init__.py,sha256=AtOSXDrE5EjUe3z-iBd1NTDaH8n_X9qA5WXdBLkONjA,45
85
85
  podflow/upload/add_upload.py,sha256=_2-V0z75Lwu-PUCfMD9HOSxZTB102yZlZW5hSdlHcsc,1432
86
86
  podflow/upload/build_hash.py,sha256=9opa3xLd7nJbGGX5xa3uuKPS6dxlbkAb87ZdEiUxmxI,473
@@ -95,8 +95,8 @@ podflow/youtube/__init__.py,sha256=pgXod8gq0IijZxIkPSwgAOcb9JI5rd1mqMomoR7bcJ4,4
95
95
  podflow/youtube/build.py,sha256=3LYk_ICVXj9XkE9jZ8jEVI8596xxS_QZkcoIwcBE3Ys,12006
96
96
  podflow/youtube/get.py,sha256=Of7PRgUknhpyW70nvyVAUYVb5KyFViKiBTfH3Y6Mke8,16970
97
97
  podflow/youtube/login.py,sha256=3nLj0KLdsc-kQmXxG5FyZfR-kiDzbQy2J0KhPXMxJGc,1380
98
- podflow-20250330.1.dist-info/METADATA,sha256=zWGWzIQYTCyQ287SptXAXAmA8dmulHZiLdZBphRC9Ns,14165
99
- podflow-20250330.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
100
- podflow-20250330.1.dist-info/entry_points.txt,sha256=mn7hD_c_dmpKe3XU0KNekheBvD01LhlJ9htY-Df0j2A,131
101
- podflow-20250330.1.dist-info/top_level.txt,sha256=fUujhhz-RrMI8aGvi-3Ey5y7FQnpOOgoFw9OWM3yLCU,8
102
- podflow-20250330.1.dist-info/RECORD,,
98
+ podflow-20250330.2.dist-info/METADATA,sha256=dib3m0NZE-NiRDNrrF3_HUq_8IOxf7Slseux2Jp1ufQ,14165
99
+ podflow-20250330.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
100
+ podflow-20250330.2.dist-info/entry_points.txt,sha256=mn7hD_c_dmpKe3XU0KNekheBvD01LhlJ9htY-Df0j2A,131
101
+ podflow-20250330.2.dist-info/top_level.txt,sha256=fUujhhz-RrMI8aGvi-3Ey5y7FQnpOOgoFw9OWM3yLCU,8
102
+ podflow-20250330.2.dist-info/RECORD,,