yeref 0.24.28__py3-none-any.whl → 0.24.31__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.
yeref/yeref.py CHANGED
@@ -15511,7 +15511,7 @@ async def get_vars_web_main(chat_id, username, full_name, lc, is_premium, utm_we
15511
15511
  return is_paid, till_paid, lz
15512
15512
 
15513
15513
 
15514
- async def upd_user_data_main(data, web_app_init_data, BASE_P, BOT_TOKEN_E18B, req_url=''):
15514
+ async def upd_user_data_main(data, web_app_init_data, BASE_P, BOT_TOKEN_E18B, req_url='', utm=''):
15515
15515
  chat_id = int(web_app_init_data.get('user', {}).get('id'))
15516
15516
  username = web_app_init_data.get('user', {}).get('username', None)
15517
15517
  first_name = web_app_init_data.get('user', {}).get('first_name', '')
@@ -15570,10 +15570,12 @@ async def upd_user_data_main(data, web_app_init_data, BASE_P, BOT_TOKEN_E18B, re
15570
15570
  USER_VARS['USER_ISPREMIUM'] = is_premium
15571
15571
  lz = USER_VARS.get('USER_LZ', 'en')
15572
15572
 
15573
- if USER_VARS['USER_DT'] == '':
15573
+ print(f"before {USER_VARS=}")
15574
+ if not USER_VARS.get('USER_DT') and not USER_VARS.get('USER_UTM') and utm:
15575
+ USER_VARS['USER_UTM'] = utm
15576
+ if not USER_VARS.get('USER_DT'):
15574
15577
  USER_VARS['USER_DT'] = datetime.now(timezone.utc).strftime("%d-%m-%Y_%H-%M-%S")
15575
- # if utm != '':
15576
- # USER_VARS['USER_UTM'] = utm
15578
+ print(f"after {USER_VARS=}")
15577
15579
  # endregion
15578
15580
 
15579
15581
  # region tx
@@ -15982,8 +15984,8 @@ async def post_save(bot, data_user, data_web, MEDIA_D, BASE_P, KEYS_JSON, PROJEC
15982
15984
  print(f"--------------------------------------------------------")
15983
15985
  print(f"after {POST_MEDIA=}")
15984
15986
 
15985
- if PROJECT_USERNAME == 'FereyPostBot' and POST_TYPE in ['voice', 'audio'] and 'filev_id' not in POST_MEDIA[0]:
15986
- asyncio.create_task(convert_to_vinyl(bot, chat_id, ENT_TID, MEDIA_D, EXTRA_D, POST_MEDIA))
15987
+ if PROJECT_USERNAME == 'FereyPostBot' and POST_TYPE in ['voice', 'audio'] and len(POST_MEDIA) == 1 and 'filev_id' not in POST_MEDIA[0]:
15988
+ asyncio.create_task(convert_to_vinyl(bot, chat_id, ENT_TID, POST_TID, MEDIA_D, EXTRA_D, POST_MEDIA, BASE_P))
15987
15989
 
15988
15990
  # region pay
15989
15991
  for button in POST_BUTTONS:
@@ -17595,6 +17597,7 @@ async def convert_to_vinyl(bot, chat_id, ENT_TID, POST_TID, MEDIA_D, EXTRA_D, PO
17595
17597
  full_file_name = os.path.join(MEDIA_D, str(ENT_TID), POST_MEDIA[0]['file_name'])
17596
17598
  file_name_video = full_file_name[: full_file_name.rfind('.')] + '.mp4'
17597
17599
  try:
17600
+ print(f"convert_to_vinyl start..")
17598
17601
  file = await bot.get_file(POST_MEDIA[0]['file_id'])
17599
17602
  await bot.download_file(file.file_path, full_file_name)
17600
17603
  print(f"{full_file_name=} dl ok..")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yeref
3
- Version: 0.24.28
3
+ Version: 0.24.31
4
4
  Summary: desc-f
5
5
  Author: john smith
6
6
  Dynamic: author
@@ -0,0 +1,8 @@
1
+ yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
2
+ yeref/l_.py,sha256=LMX_olmJwq-tgoALJCnhV_fGrL_i_43yBLkLIcEVqGo,1176743
3
+ yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
4
+ yeref/yeref.py,sha256=XWmU_poRipZ6uaBVdxaW3OoSapxu87eNO8lovv3yzL0,1021799
5
+ yeref-0.24.31.dist-info/METADATA,sha256=8BtXH2OSMyxqfLxj2mUPE-HJhCD0B5g_ftY3mEB_NV8,119
6
+ yeref-0.24.31.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ yeref-0.24.31.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
8
+ yeref-0.24.31.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- yeref/__init__.py,sha256=Qpv3o6Xa78VdLcsSRmctGtpnYE9btpAkCekgGhgJyXM,49
2
- yeref/l_.py,sha256=LMX_olmJwq-tgoALJCnhV_fGrL_i_43yBLkLIcEVqGo,1176743
3
- yeref/tonweb.js,sha256=Jf6aFOQ1OIY4q7fINYz-m5LsI3seMus124M5SYYZmtE,443659
4
- yeref/yeref.py,sha256=yGrIAWvIBhy1PuwKn5fdSKpL3GbvZ2xMzVKmgrPqWVc,1021571
5
- yeref-0.24.28.dist-info/METADATA,sha256=4Ue09_m-KIRZZN6h5dd1qlFyhT50u0LUPjPvBnFQuDo,119
6
- yeref-0.24.28.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- yeref-0.24.28.dist-info/top_level.txt,sha256=yCQKchWHbfV-3OuQPYRdi2loypD-nmbDJbtt3OuKKkY,6
8
- yeref-0.24.28.dist-info/RECORD,,