BinaryONe commited on
Commit
920f006
·
1 Parent(s): b13d017

Minor Changes

Browse files
Files changed (2) hide show
  1. Dockerfile +8 -0
  2. YukkiMusic/plugins/play/webapp.py +4 -3
Dockerfile CHANGED
@@ -4,9 +4,17 @@ ENV TZ="Asia/India"
4
  RUN date
5
 
6
  RUN apt-get update -y && apt-get upgrade -y \
 
7
  && apt-get install -y --no-install-recommends ffmpeg \
 
 
 
 
 
 
8
  && apt-get clean \
9
  && rm -rf /var/lib/apt/lists/*
 
10
  COPY . /app
11
 
12
  RUN chmod 777 /app
 
4
  RUN date
5
 
6
  RUN apt-get update -y && apt-get upgrade -y \
7
+ && libx264 \
8
  && apt-get install -y --no-install-recommends ffmpeg \
9
+ && autoconf automake build-essential libtool pkg-config \
10
+ && libavcodec-dev libavformat-dev libavfilter-dev libavdevice-dev \
11
+ && libavutil-dev libswscale-dev libswresample-dev \
12
+ && tzdata \
13
+ && ln -fs /usr/share/zoneinfo/$TZ /etc/localtime \
14
+ && dpkg-reconfigure -f noninteractive tzdata \
15
  && apt-get clean \
16
  && rm -rf /var/lib/apt/lists/*
17
+
18
  COPY . /app
19
 
20
  RUN chmod 777 /app
YukkiMusic/plugins/play/webapp.py CHANGED
@@ -61,9 +61,10 @@ async def add_user( client, message):
61
  except ValueError or UnboundLocalError:
62
  return await message.reply_text(f"**Usage:**\n <code> /select_group <1,2,3> </code> \n ValueError or UnboundLocalError")
63
 
64
- print(user_id, type(user_id),MEMBERS_GROUPS[int(user_id)], type(MEMBERS_GROUPS[user_id]))
65
- group_list= MEMBERS_GROUPS
66
- GROUP= int( str(MEMBERS_GROUPS[int(user_id)]) )
 
67
  print(GROUP)
68
  await message.reply_text(f"**Group Set Successfully")
69
 
 
61
  except ValueError or UnboundLocalError:
62
  return await message.reply_text(f"**Usage:**\n <code> /select_group <1,2,3> </code> \n ValueError or UnboundLocalError")
63
 
64
+ number_strings = MEMBERS_GROUPS.split()
65
+ number_list = [int(num) for num in number_strings]
66
+ print(user_id, type(user_id),number_list[int(user_id)], type(number_list[user_id]))
67
+ GROUP= number_list[user_id]
68
  print(GROUP)
69
  await message.reply_text(f"**Group Set Successfully")
70